Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Fix #2: Skip downloads if pip is correct version #4

Closed
wants to merge 1 commit into from

Conversation

pmclanahan
Copy link

Decided to go ahead and file the PR just in case you liked the idea.

Thanks again for pipstrap Erik! It's been a massive time saver for us.

@pmclanahan pmclanahan force-pushed the skip-if-pip-up-to-date branch from 8f206c9 to 018d177 Compare March 8, 2016 03:28
@pmclanahan
Copy link
Author

Rebased on current master. Any thoughts on this @erikrose ?

@erikrose
Copy link
Contributor

erikrose commented Mar 8, 2016

In the last week, I have realized just how deep the packaging rabbit hole goes. Since shipping peep with Let's Encrypt, I've been a party to bug after bug in pip and friends (which I see, since peep emits bug-reporting instructions), to the point where I no longer trust shipping anything but a fully pinned trio of pip, setuptools, and wheel and installing into an empty virtualenv with the wheel cache off. At the very least, I then can reproduce reported bugs. (In fact, I'm conflicted about the "if" around argparse.) If we could check the versions of all of the packages pipstrap cares about (pip list?), I'd be into that. What do you think?

@pmclanahan
Copy link
Author

My thought here was simply that if the environment already has a pip at the current version, then we can assume that pipstrap had been previously run successfully. I'm just using it as a proxy. If you think this will introduce bugs and maintenance overhead for you then I'm happy to work around this in my own deployment scripts. My goal was simply to make this a bit faster and require no network in situations when this gets run every time (e.g. CI) but sometimes the venv was cached and downloading these packages again is superfluous.

erikrose added a commit that referenced this pull request May 31, 2017
* Factor up pip version.
* Pass quietly if all goes well. This should also relieve our dependency on a Unix-like shell.
* Drop shell use for vague notion of security.
* Avoid variable reassignment.
erikrose added a commit that referenced this pull request May 31, 2017
* Factor up pip version.
* Pass quietly if all goes well. This should also relieve our dependency on a Unix-like shell.
* Drop shell use for vague notion of security.
* Avoid variable reassignment.
@erikrose
Copy link
Contributor

Sorry for the long wait, pmac. I've subsumed this into #9.

@erikrose erikrose closed this May 31, 2017
erikrose added a commit that referenced this pull request May 31, 2017
This mixes together #4 and #7. Fixes #2. Credits to @pmac and @systemexitzero.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants