Skip to content

Commit

Permalink
securedrop-log build: add --ignore-installed and --no-deps
Browse files Browse the repository at this point in the history
`--ignore-installed` ensures that every dependency in
build-requirements.txt will be installed.

`--no-deps` provides a guard against "installing anything not
explicitly listed" [0]

[0] https://pip.readthedocs.io/en/stable/user_guide/#pinned-version-numbers
  • Loading branch information
redshiftzero committed Mar 31, 2020
1 parent f4b27da commit 670786a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion securedrop-log/debian/rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/usr/bin/make -f

%:
dh $@ --with python-virtualenv --python /usr/bin/python3 --setuptools --extra-pip-arg "--no-deps" --index-url https://pypi.securedrop.org/simple --requirements build-requirements.txt
dh $@ --with python-virtualenv

override_dh_virtualenv:
dh_virtualenv \
--python /usr/bin/python3 \
--setuptools \
--index-url https://pypi.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
Expand Down

0 comments on commit 670786a

Please sign in to comment.