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.
The idea and implementation of the virtual Python recipe are based on the virtual-python.py script advertised on Phillip J. Eby’s EasyInstall page, which is in turn based on a script by Ian Bicking.
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
Built Distributions
File details
Details for the file tl.buildout_virtual_python-0.1.1.tar.gz
.
File metadata
- Download URL: tl.buildout_virtual_python-0.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce521e342b071e42ad31e68b236e607c07282f99f91ba72a026c25ba37f01d38 |
|
MD5 | 4e0bd45843f98d2da4de5a945e3f9915 |
|
BLAKE2b-256 | f9c417ee7ba6480c3d0385d312af05a2446d4bab4ca099339ccc318396b63841 |
File details
Details for the file tl.buildout_virtual_python-0.1.1-py2.5.egg
.
File metadata
- Download URL: tl.buildout_virtual_python-0.1.1-py2.5.egg
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d0009ccc3524d55f96708b8275d31f41e631c5d83194a437e9eb9f00e6afc70 |
|
MD5 | 097c385cddf782171e436c7cc3519920 |
|
BLAKE2b-256 | dba9b564f6b40fa3cfcba3aa1f5592cb97f8616c9ec657bc4dd9ee836020cc52 |
File details
Details for the file tl.buildout_virtual_python-0.1.1-py2.4.egg
.
File metadata
- Download URL: tl.buildout_virtual_python-0.1.1-py2.4.egg
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cea848bb422f6e72c4e56ccaa3d381d3a4754fbc8af22be4b674247e231e89f |
|
MD5 | 5457fdbc13fedfdd33556fddf638efa0 |
|
BLAKE2b-256 | 14de635c4016353a20f2a68dd340ef5c89b82377127299f32eae972d4bcfd6f6 |