Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.recipe.distutils

How to install collective.recipe.distutils

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.recipe.distutils
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1 Available View build log
Windows (64-bit)
0.1 Available View build log
Mac OS X (10.5+)
0.1 Available View build log
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log
 
Author
License
GPL
Dependencies
Lastest release
version 0.1 on Jan 5th, 2011

For Python packages which are only installable with distutils, and aren't yet avaiable 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]

System Message: ERROR/3 (<string>, line 12)

Inconsistent literal block quoting.

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://www.bcgsc.ca/downloads/parts/software/resources/src/postgresql/postgresql-8.1.9.tar.gz

[psycopg2] recipe = collective.recipe.distutils url = http://www.bcgsc.ca/downloads/parts/software/resources/src/psycopg2/psycopg2-2.0.6.tar.gz build_ext = --pg-config=${buildout:directory}/parts/postgresql/bin/pg_config --rpath=${buildout:directory}/parts/postgresql/lib

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.