Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dh-virtualenv for securedrop-client #112

Merged
merged 2 commits into from
Jan 13, 2020
Merged

Conversation

rmol
Copy link
Contributor

@rmol rmol commented Dec 12, 2019

Add extra pip options "--ignore-installed", "--no-deps", and "--no-cache-dir" to the dh-virtualenv override in rules files for securedrop-client, securedrop-export, and securedrop-proxy. This prevents variation in the build environment from changing the set of requirements included in the virtualenv embedded in the package.

Fixes #111.

Add extra pip options "--ignore-installed", "--no-deps", and
"--no-cache-dir" to the dh-virtualenv override in
securedrop-client/debian/rules. This prevents variation in the build
environment from changing the set of requirements included in the
virtualenv embedded in the package.
--setuptools \
--use-system-packages \
--index-url https://dev-bin.ops.securedrop.org/simple \
--extra-pip-arg "--ignore-installed" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very good catch @rmol, we should def add these three extra pip args, --ignore-installed in particular

@kushaldas what do you think of this change?

@kushaldas
Copy link
Contributor

These are the corresponding docs for pip extra args:

All of these look good to me, and testing one package, we should apply these to all the other
packages.

@rmol @redshiftzero

@redshiftzero
Copy link
Contributor

hey @rmol when you get a chance feel free to update this PR to make this same change in all python-based packages in this repo and take this out of draft status

@rmol rmol marked this pull request as ready for review January 9, 2020 23:47
@conorsch conorsch changed the title [wip] Improve dh-virtualenv for securedrop-client Improve dh-virtualenv for securedrop-client Jan 10, 2020
Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm

@redshiftzero redshiftzero merged commit 3091c70 into master Jan 13, 2020
@redshiftzero redshiftzero deleted the 111-dh-virtualenv branch January 13, 2020 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make dh_virtualenv more repeatable/reliable
3 participants