diff options
author | Micah Anderson <micah@riseup.net> | 2013-08-29 13:52:38 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-08-29 13:52:38 -0400 |
commit | 2e0b170edd8dd59215d588b570c315cebdbabcfa (patch) | |
tree | bb66e29941df0db548457e9463f4c80986574f78 /debian/rules | |
parent | e73ea3d9b7bf104e35068b1072c9b3f34e195106 (diff) | |
parent | 7d0583675dd68ada3d8b2f20d45264fb267146c8 (diff) |
Merge remote-tracking branch 'kali/bug/fix-namespace' into debian
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index abe080c6..c66ed435 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,10 @@ #!/usr/bin/make -f +# Uncomment this to turn on verbose mode. +#DH_VERBOSE=1 + %: - dh $@ --with python2 + dh $@ --with python2 --namespace=leap.soledad override_dh_auto_clean: cd client && python setup.py clean -a @@ -13,5 +16,9 @@ override_dh_auto_install: cd common && python setup.py install --root=../debian/soledad-common cd server && LEAP_SKIP_INIT=1 python setup.py install --root=../debian/soledad-server - - +override_dh_install: + # leap.soledad provides the leap.soledad namespace __init__.py + for pv in $(shell pyversions -vr debian/control); do \ + cp common/src/leap/__init__.py debian/soledad-common/usr/local/lib/python$$pv/*-packages/leap/; \ + cp common/src/leap/__init__.py debian/soledad-common/usr/local/lib/python$$pv/*-packages/leap/soledad/; \ + done |