python: create venv's --without-pip#15792
Conversation
MikeMcQuaid
left a comment
There was a problem hiding this comment.
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!
|
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 stylewith your changes locally?brew typecheckwith your changes locally?brew testswith your changes locally?Currently,
virtualenv_install_with_resourcescreates 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-pippython@x.y'spipto install resources into this venv, using the--pythonoptionactivatescripts (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.