[Distutils] [Buildout] Include-dirs

Svenn Helge Grindhaug Svenn.Helge.Grindhaug at bccs.uib.no
Thu May 28 09:57:39 CEST 2009


Hi,

I'm trying to do something similar to the custom egg building in the tutorial, 
http://www.buildout.org/docs/tutorial.html?highlight=location#custom-egg-
building

I have the following files:

setup.py
*********
from setuptools import setup, find_packages

setup(
    name='myproject',
    version='3.3.0',
    packages=find_packages('src'),
    package_dir = {'': 'src'},
    include_package_data = True,
    install_requires=['setuptools',
                      'numpy',
                      'ScientificPython'],
    zip_safe = False,
    )

buildout.cfg
*************

[buildout]
parts = numpy
		ScientificPython 
		mypy 

[numpy]
recipe = zc.recipe.egg
find-links = 
http://sunet.dl.sourceforge.net/sourceforge/numpy/numpy-1.3.0.tar.gz
eggs= numpy

[ScientificPython]
recipe = zc.recipe.egg:custom
egg=ScientificPython
find-links = 
http://sourcesup.cru.fr/frs/download.php/2372/ScientificPython-2.9.0.tar.gz
include-dirs = ${numpy:location}/numpy/core/include

[mypy]
recipe = zc.recipe.egg:script
eggs = numpy
       ScientificPython
interpreter = python

------------

The ScientificPython package need some header files located in the numpy 
package/egg. I get an error when using ${numpy:location}

Error: Referenced option does not exist: numpy location

When I use the absolute path to the include dir it works. What am I doing 
wrong?

Best regards,

Svenn.


More information about the Distutils-SIG mailing list