Skip to main content

zc.buildout recipe to build the mod_python Apache module.

Project description

This is a zc.buildout recipe for setting up the mod_python module for the Apache web server. It is designed to work together with the tl.buildout_apache recipes.

Since the mod_python Python package needs to be available to the Python interpreter before it has a chance to modify the interpreter’s module search path, this recipe writes a .pth file to Python’s site-packages directory. This means that the Python installation used must be writeable, and it should by all means be private to the buildout. You can include a custom-built Python in your buildout using some configure/make/make install recipe, or, as a light-weight alternative, a virtual python using the tl.buildout_virtual_python recipe. In any case, Python’s C header files must be installed.

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 serves as a config part to be used in a tl.buildout_apache:root section. It adds configuration directives to load the mod_python shared module and configure the Python interpreters’ module search path.

None of the options described below are required: they either have sensible defaults or are computed by the recipe. You may override any of them.

Configuration options:
url:

Where to get the source distribution.

md5sum:

MD5 checksum of the source distribution.

extra-options:

Extra configure options, appended to the ./configure command line.

extra-vars:

Extra environment variables for ./configure, make, and make install calls.

httpd:

The name of a buildout section for an httpd installation, defaults to “httpd”. This can either be a part that uses the tl.buildout_apache:root recipe, or a section that describes a system-wide installation. It must export the “apxs-path” option.

python:

The name of a buildout section for a Python installation, defaults to the Python section used by the “buildout” part. It must export the “executable” option.

eggs:

Specifications of eggs to be available on mod_python’s default Python path.

find-links:

See the zc.recipe.egg documentation.

index:

See the zc.recipe.egg documentation.

extra-paths:

Non-egg paths to be included in mod_python’s default Python path.

config-parts:

Names of buildout sections with further configuration. See the tl.buildout_apache:root recipe.

Exported options:
so-path:

Absolute file system path to the mod_python.so shared module.

lib-dir:

Absolute file system path to the Python library directory that contains the mod_python package.

path-file:

The path to a file that contains the paths to the configured eggs and all of the configured extra paths, one per line.

extra-env:

A specification for httpd’s PATH so the correct Python executable will be used.

extra-config:

A piece of Apache server configuration that loads the mod_python shared module and sets mod_python’s default Python path.

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_mod_python-0.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distributions

tl.buildout_mod_python-0.2-py2.5.egg (11.9 kB view details)

Uploaded Source

tl.buildout_mod_python-0.2-py2.4.egg (11.9 kB view details)

Uploaded Source

File details

Details for the file tl.buildout_mod_python-0.2.tar.gz.

File metadata

File hashes

Hashes for tl.buildout_mod_python-0.2.tar.gz
Algorithm Hash digest
SHA256 ae43cd2d5aba844d733ff01ac4010e241b6c175f064563f629ef1626122e5648
MD5 56879a2e86d1c6f70f718033243b9c6c
BLAKE2b-256 33c749ea15c9da308cc608cd2dda2fb59a1e8d0107200d4a9fd49ef709df1a38

See more details on using hashes here.

File details

Details for the file tl.buildout_mod_python-0.2-py2.5.egg.

File metadata

File hashes

Hashes for tl.buildout_mod_python-0.2-py2.5.egg
Algorithm Hash digest
SHA256 40911dd8fcaa04e979c4aa21c87c3d5ed018aeb4aec31d75c68b44f3189593a0
MD5 622be7ef47e38f28e7bf208586469a13
BLAKE2b-256 499b41cf39f5275d1e471adb695ed7ac09c9901150e60b931d9781f60d06e48e

See more details on using hashes here.

File details

Details for the file tl.buildout_mod_python-0.2-py2.4.egg.

File metadata

File hashes

Hashes for tl.buildout_mod_python-0.2-py2.4.egg
Algorithm Hash digest
SHA256 ce17fa49513bf68cd682ec87f34ab7b3048841e10fdad0b40f4d7d0ab74cc873
MD5 ca895cc80c01b94e3519b6cdeed53bcc
BLAKE2b-256 65fe7e0762f4e32b784f414a498c8604ddb737df6bfc9f0401026ce4f94003ba

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