forked from Yelp/paasta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·33 lines (27 loc) · 1.02 KB
/
rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
# -*- makefile -*-
%:
dh $@ --with python-virtualenv
# do not call `make clean` as part of packaging
override_dh_auto_clean:
true
override_dh_auto_build:
true
# do not call `make test` as part of packaging
override_dh_auto_test:
true
PACKAGE=$(shell dh_listpackages)
DH_VIRTUALENV_INSTALL_ROOT=/opt/venvs
DH_VENV_DIR=debian/$(PACKAGE)$(DH_VIRTUALENV_INSTALL_ROOT)/$(PACKAGE)
override_dh_virtualenv:
dh_virtualenv \
--python=/usr/bin/python3.8 \
--preinstall no-manylinux1 \
--preinstall=-rrequirements-bootstrap.txt
cp yelp_package/gopath/paasta_go $(DH_VENV_DIR)/bin/paasta_go
@echo patching k8s client lib
patch $(DH_VENV_DIR)/lib/python3.8/site-packages/kubernetes/client/api_client.py contrib/python-k8s-client.diff
override_dh_shlibdeps:
# pylibmc manylinux bundle libraries fail unless this is passed.
# See https://dh-virtualenv.readthedocs.io/en/latest/howtos.html#handling-binary-wheels for more details
dh_shlibdeps --exclude=/pygpgme.libs/ --exclude=/cryptography.libs/ --exclude=/dulwich/