-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
python: create venv's --without-pip
#15792
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me! Could you add a commented-out odeprecated
for the opt-out so we can remove it if it's unused? Thanks!
9333a56
to
98323cd
Compare
Done! |
Thanks again @branchvincent! |
I have a bunch of machines running different brew versions and a formula that uses |
Sorry about that!
may be a silly question, but is updating to the latest version not an option?
in what way? there may be a simple change you could make, like Homebrew/homebrew-core#138661 (comment) |
@cangussu Which versions? Note we do not support running any Homebrew versions beyond the latest. |
This also removes
|
Since Also note if you use |
@branchvincent I followed your suggestion to use
|
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Currently,
virtualenv_install_with_resources
creates a venv with a full copy ofpip
. This is pretty wasteful, since we really only need it at build time to install resources. Instead, we can:--without-pip
[email protected]
'spip
to install resources into this venv, using the--python
optionactivate
scripts (which admittedly doesn't save much but aren't necessary)As a result, this saves ~7MB of disk space per venv:
Note I don't foresee this causing any issues, but I've left an opt-out to be safe.