distutils recipe
For Python packages which are only installable with distutils, and aren’t yet available as eggs. This recipe will download a distutils tarball, build it and place it inside your buildout inside a parts/site-packages directory.
It is up to you to inform your Python about this site-packages directory. You might do this with the zc.recipe.egg recipe:
[buildout]
parts =
mypython
[mypython]
recipe = zc.recipe.egg
eggs = zc.recipe.egg
extra-paths = ${buildout:directory}/parts/site-packages/
interpreter = mypython
scripts = mypython
Options
- url
The URL of the archives to download and install. The archive specified will be installed inside a site-packages directory.
- build_ext
Additional build options passed to setup.py.
To-Do
Currently only enough work has been done on this recipe to get it to install mx-base and psycopg2. There is lots of room for improvement …
Example Usage
A sample buildout.cfg that installs mx-base and psycopg2 inside the site-packages directory. It also installs PostgreSQL for building psycopg2, adjusting the build_ext for psycopg2 to point to an existing PostgreSQL install would remove the need for this:
[buildout]
parts =
egenix-mx-base
mypython
postgresql
psycopg2
[egenix-mx-base]
recipe = collective.recipe.distutils
url = http://downloads.egenix.com/python/egenix-mx-base-3.0.0.zip
[mypython]
recipe = zc.recipe.egg
eggs = zc.recipe.egg
extra-paths = ${buildout:directory}/parts/site-packages/
interpreter = mypython
scripts = mypython
[postgresql]
recipe = zc.recipe.cmmi
url = http://example.com/postgresql-8.1.9.tar.gz
[psycopg2]
recipe = collective.recipe.distutils
url = http://example.com/psycopg2-2.0.6.tar.gz
build_ext =
--pg-config=${buildout:directory}/parts/postgresql/bin/pg_config
--rpath=${buildout:directory}/parts/postgresql/lib
Metadata
Release files for collective.recipe.distutils 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collective.recipe.distutils-0.1.tar.gz | 4.2 kB | Without provenance | Details for collective.recipe.distutils-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| collective.recipe.distutils-0.1-py2.4.egg | Legacy Egg format | - | - | Details for collective.recipe.distutils-0.1-py2.4.egg |
Total release size: 12.2 kB
Release files / collective.recipe.distutils-0.1.tar.gz
| Download URL | collective.recipe.distutils-0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee267ee15b40fa3e10f9eb44167c333439a75e199bce89526368d86a7e9ef19c
|
|
BLAKE2b-256 checksum How to use checksums |
311ff4cb88fcef9d38c2c8d7fe17142cdf5d9e0a0b846cbc6852f54dcdb2e8d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / collective.recipe.distutils-0.1-py2.4.egg
| Download URL | collective.recipe.distutils-0.1-py2.4.egg |
|---|---|
| Size | 7.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3a09623fd5eb71f803c2a6f91095b8801782c97d02359b25777a3c6c89c4d805
|
|
BLAKE2b-256 checksum How to use checksums |
c2995a6742daad99b5fa52e78e7405667f9669bec8fbff87591f32d69538d9d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for collective.recipe.distutils 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.