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 <thomas@thomas-lotze.de>.

Options

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:
executable-name:

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.

Source Distribution

tl.buildout_virtual_python-0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distributions

tl.buildout_virtual_python-0.1-py2.5.egg (9.0 kB view details)

Uploaded Source

tl.buildout_virtual_python-0.1-py2.4.egg (9.0 kB view details)

Uploaded Source

File details

Details for the file tl.buildout_virtual_python-0.1.tar.gz.

File metadata

File hashes

Hashes for tl.buildout_virtual_python-0.1.tar.gz
Algorithm Hash digest
SHA256 d85e1524ac2877e19874bb915213ecef786ac9092c0a27fcf2b717450af16703
MD5 1655a1f343e1ed26fdaa1615410098d9
BLAKE2b-256 c2856a5b5880cf59062a1c0040a374173882bae501c0d3a24a9cdea33598d953

See more details on using hashes here.

File details

Details for the file tl.buildout_virtual_python-0.1-py2.5.egg.

File metadata

File hashes

Hashes for tl.buildout_virtual_python-0.1-py2.5.egg
Algorithm Hash digest
SHA256 03c8019cac168d4a3fadc5b44ea21cb1672ebfa5d38dbe54c7217dbe8ce9d1ba
MD5 916cee9c5979cb559f80337f6417eb2c
BLAKE2b-256 28b07bf6a62eeba56f0b57a6e3e150086e6524f0b9e1de53d33599500d38e402

See more details on using hashes here.

File details

Details for the file tl.buildout_virtual_python-0.1-py2.4.egg.

File metadata

File hashes

Hashes for tl.buildout_virtual_python-0.1-py2.4.egg
Algorithm Hash digest
SHA256 43a924e2b702fb0ac19c59875c61d14c9d43ff078b63b170b20baeb8ca5efed6
MD5 c20514b56f67bff76a62e996cb4aacb4
BLAKE2b-256 a44457965c83cb3edd317ad1368984ad37151ab91314c45e1e540fa4a3e44fa7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page