-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from freedomofpress/111-dh-virtualenv
Improve dh-virtualenv for securedrop-client
- Loading branch information
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --with python-virtualenv --python /usr/bin/python3 --setuptools --index-url https://dev-bin.ops.securedrop.org/simple --requirements build-requirements.txt | ||
dh $@ --with python-virtualenv | ||
|
||
override_dh_virtualenv: | ||
dh_virtualenv \ | ||
--python /usr/bin/python3 \ | ||
--setuptools \ | ||
--index-url https://dev-bin.ops.securedrop.org/simple \ | ||
--extra-pip-arg "--ignore-installed" \ | ||
--extra-pip-arg "--no-deps" \ | ||
--extra-pip-arg "--no-cache-dir" \ | ||
--requirements build-requirements.txt | ||
|
||
override_dh_strip_nondeterminism: | ||
find ./debian/ -type f -name '*.pyc' -delete | ||
find ./debian/ -type f -name 'pip-selfcheck.json' -delete | ||
find -type f -name RECORD -exec sed -i -e '/.*\.pyc.*/d' {} + | ||
dh_strip_nondeterminism $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --with python-virtualenv --python /usr/bin/python3 --setuptools --index-url https://dev-bin.ops.securedrop.org/simple --requirements build-requirements.txt | ||
dh $@ --with python-virtualenv | ||
|
||
override_dh_virtualenv: | ||
dh_virtualenv \ | ||
--python /usr/bin/python3 \ | ||
--setuptools \ | ||
--index-url https://dev-bin.ops.securedrop.org/simple \ | ||
--extra-pip-arg "--ignore-installed" \ | ||
--extra-pip-arg "--no-deps" \ | ||
--extra-pip-arg "--no-cache-dir" \ | ||
--requirements build-requirements.txt | ||
|
||
override_dh_strip_nondeterminism: | ||
find ./debian/ -type f -name '*.pyc' -delete | ||
find ./debian/ -type f -name 'pip-selfcheck.json' -delete | ||
find -type f -name RECORD -exec sed -i -e '/.*\.pyc.*/d' {} + | ||
dh_strip_nondeterminism $@ | ||
|