diff options
| author | Johannes Dewender <github@JonnyJD.net> | 2013-10-25 18:07:19 +0200 |
|---|---|---|
| committer | Johannes Dewender <github@JonnyJD.net> | 2013-10-26 19:33:05 +0200 |
| commit | 0ca43d5d8c6a74f9074282639ffc08984ebf799c (patch) | |
| tree | 87d210d345bc0a17a2f5d2ad732e42f7216f7a14 /debian/rules | |
| parent | c0caf838e0d21301c5ae8d519bcea5659662383f (diff) | |
| download | targetcli-0ca43d5d8c6a74f9074282639ffc08984ebf799c.tar.gz | |
debian: switch to using Python 3
Signed-off-by: Johannes Dewender <github@JonnyJD.net>
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index ac0a879..9347d18 100755 --- a/debian/rules +++ b/debian/rules @@ -1,15 +1,24 @@ #!/usr/bin/make -f build_dir = build -install_dir = $(CURDIR)/debian/tmp +install_dir = $(CURDIR)/debian/targetcli-fb #export DH_VERBOSE=1 +PYTHON3=$(shell py3versions -vr) + +# prevent internet access / don't use PyPi export http_proxy = http://127.0.0.1:9 %: - dh $@ --with python2 + dh $@ --with python3 + +override_dh_auto_build: + python$(PYTHON3) setup.py build + +override_dh_auto_install: + python$(PYTHON3) setup.py install --root=$(install_dir) --install-layout=deb override_dh_installinit: dh_installinit --name target |
