You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP 453: venv module and pyvenv integration #63751
Since ensurepip needs to manipulate sys.path, I ended up running the "-m ensurepip" using the venv Python in a subprocess. This both avoids side effects on the current process and gets ensurepip the right target directory settings automatically.
Rather than reopening this (which is part of tracking the feature integration for the beta), I opened bpo-19694 to cover the stable buildbot that is objecting to the new venv test (most of the others seem happy with it)
Activity
ncoghlan commentedon Nov 11, 2013
Part of the PEP-453 implementation as tracked in bpo-19347.
This issue covers the venv module and pyvenv CLI updates:
Add a "with_pip=False" parameter to venv.EnvBuilder and venv.create
When with_pip is a true value, invoke ensurepip.bootstrap with the root set to the just created venv and default_pip set to True
update pyvenv to pass with_pip=True by default
add a --without-pip option to pyvenv to pass with_pip=False instead
ncoghlan commentedon Nov 22, 2013
Since ensurepip needs to manipulate sys.path, I ended up running the "-m ensurepip" using the venv Python in a subprocess. This both avoids side effects on the current process and gets ensurepip the right target directory settings automatically.
dstufft commentedon Nov 22, 2013
That's similar to how virtualenv does it, so it's probably pretty reasonable.
python-dev commentedon Nov 22, 2013
New changeset 57fbab22ab4e by Nick Coghlan in branch 'default':
Close bpo-19552: venv and pyvenv ensurepip integration
http://hg.python.org/cpython/rev/57fbab22ab4e
ncoghlan commentedon Nov 22, 2013
Rather than reopening this (which is part of tracking the feature integration for the beta), I opened bpo-19694 to cover the stable buildbot that is objecting to the new venv test (most of the others seem happy with it)
python-dev commentedon Mar 9, 2014
New changeset a140caad76bc by R David Murray in branch 'default':
whatsnew: venv with_pip, pyvenv --without-pip (bpo-19552)
http://hg.python.org/cpython/rev/a140caad76bc