Skip to main content

zc.buildout recipe for creating a virtual Python installation

Project description

This is a zc.buildout recipe for setting up a virtual Python installation inside a buildout. This gives you a writable Python environment isolated from other buildouts and from its parent Python installation.

Using a virtual Python avoids the need to compile Python from source and allows you to use packages installed into the parent Python installation. Depending on your situation, these features may be considered helpful or harmful. The recipe provides mechanism and leaves choosing policy up to you.

This recipe appears to be reliable, but the feature set is basically determined by the author’s immediate needs. Don’t hesitate to send questions, bug reports, suggestions, or patches to <>.


A buildout part created by this recipe exports an executable option so it may be used as a part defining a Python installation in a buildout, i.e. a buildout section’s python option may reference it.

Configuration options:
 Basename of the virtual Python installation’s interpreter executable.
real-python:Filesystem path to the interpreter executable of the Python installation that should be used as the parent Python.
site-packages:Boolean switch, whether to make the parent Python’s site-packages library directory available to the virtual Python.
extra-paths:Extra library paths to make available to the virtual Python.
headers:Boolean switch, whether to make the parent Python’s C header files available in the virtual Python installation.
Exported options:
location:Location of the buildout part containing the virtual Python installation. This is the same as the virtual Python’s sys.prefix.
executable:Filesystem path to the interpreter executable of the virtual Python installation.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tl.buildout_virtual_python, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size tl.buildout_virtual_python-0.1-py2.4.egg (9.0 kB) File type Egg Python version 2.4 Upload date Hashes View
Filename, size tl.buildout_virtual_python-0.1-py2.5.egg (9.0 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size tl.buildout_virtual_python-0.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page