|A new script which creates Python 3.3 venvs with Distribute and pip installed in them||Vinay Sajip||1/30/13 12:09 PM|
Python 3.3 includes a script, pyvenv, which is used to create virtual environments. However, Distribute and pip are not installed in such environments - because, though they are popular, they are third-party packages - not part of Python.
The Python 3.3 venv machinery allows customisation of virtual environments fairly readily. To demonstrate how to do this, and to provide at the same time a script which might be useful to people, I've created a script, pyvenvex.py, at
which extends the pyvenv script to not only create virtual environments, but to also install Distribute and pip into them. The script needs Python 3.3, and one way to use it is:
1. Download the script to a directory in your path, and (on Posix platforms) make it executable.
|Re: A new script which creates Python 3.3 venvs with Distribute and pip installed in them||Ian||1/30/13 12:42 PM|
|Re: A new script which creates Python 3.3 venvs with Distribute and pip installed in them||Vinay Sajip||1/30/13 2:18 PM|
Ian Kelly <ian.g.kelly <at> gmail.com> writes:Sure - there's a similar one at
The main purpose of the script was to illustrate how to subclass venv.EnvBuilder,
and I've added it as an example to the 3.3 and in-development documentation:
Doing it in Python means that it runs cross-platform, offers a few benefits
such as command line help, or the option to install Distribute but not pip.
|Re: [Distutils] A new script which creates Python 3.3 venvs with Distribute and pip installed in them||Philippe Ombredanne||1/31/13 1:05 AM|
On Wed, Jan 30, 2013 at 9:09 PM, Vinay Sajip <vinay...@yahoo.co.uk> wrote:Excellent and one step closer to sane package management ....
I wonder if you could not source instead the code that is directly in
the virtualenv.py scripts? it also includes the packed distribute and
Meaning that would allow the installation entirely offline (with the
--never-download venv flag)
And btw, why pip is not part of the standard Python? This is nowadays
officially recommended on Pypi as the tool to use to install
"Get Packages: To use a package from this index either "pip install
package" (get pip) or download, unpack and "python setup.py install"
This does not make sense to me: I know about some of the controversies
.... but this is rather inconsistent to recommend using a tool and
not supporting it directly.
+1 650 799 0949 | pombredanne@nexB.com
DejaCode Enterprise at http://www.dejacode.com
nexB Inc. at http://www.nexb.com