On Tue, Aug 16, 2011 at 15:40, Reinout van Rees
On 16-08-11 14:41, Attila Oláh wrote:
Hello,
On Tue, Aug 16, 2011 at 13:45, Reinout van Rees
wrote: b) Is anyone actually using 1.5.2 with system packages? And by that I mean that you have a dependency on something like numpy and buildout actually finds that package locally and won't try and grab it off pypi?
Yes, we use zc.buildout-1.5.2 with a project that runs Pyramid on Google's App Engine. I run the development environment in Gentoo, and I have net-zope/zope-interface installed in /usr/lib64/python?.?/site-packages/zope/interface. When I run buildout with a system Python that's ABI is supported by the zope-inteface ebuild, it will use the one from the system site-packages. IOW, worksforme.
Just making sure: you have a dependency on zope.interface in your setup.py's install_requires? So that buildout actively searches for it?
Good point. It wasn't there, I only listed "pyramid" and a bunch of
other packages. Let's add it and experiment.
Let's update zope-interface first:
$ sudo emerge --update --oneshot zope-interface
[...]
*
* Python namespaces:
* '/usr/lib64/python2.6/site-packages/zope.interface-3.7.0-py2.6-nspkg.pth':
* zope
* '/usr/lib64/python3.1/site-packages/zope.interface-3.7.0-py3.1-nspkg.pth':
* zope
* '/usr/lib64/python2.4/site-packages/zope.interface-3.7.0-py2.4-nspkg.pth':
* zope
* '/usr/lib64/python2.7/site-packages/zope.interface-3.7.0-py2.7-nspkg.pth':
* zope
* '/usr/lib64/python3.2/site-packages/zope.interface-3.7.0-py3.2-nspkg.pth':
* zope
* '/usr/lib64/python2.5/site-packages/zope.interface-3.7.0-py2.5-nspkg.pth':
* zope
*
[...]
Now I update setup.py, adding a few packages just for testing:
$ git clone vemble tmp && cd tmp
$ vim setip.py
$ grep req setup.py
install_requires=('zope.interface', 'numpy', 'scipy', 'nose', 'six'),
Note that I'll use a simplified buildout.cfg for testing:
$ cat buildout.cfg
[buildout]
develop = .
parts =
graph
unzip = true
[graph]
recipe = z3c.recipe.depgraph
eggs = vemble
variants = tred
strict = true
Check Python version:
$ python -V
Python 2.7.2+
Note that I have zope.interface, numpy, scipy and nose on my systme. I
do not have 'six' though.
$ python -c "print __import__('zope.interface').interface"
(ABI compatibility... I *did* upgrade to OSX Lion and installing some things give me an "cannot find gcc-4.0" error. But when running my sites, mapnik and the other libraries work just fine, so I think that shouldn't be the problem. But I don't know what buildout 1.5 does in detail.)
I have the following ABIs enabled: $ eix zope-interface | grep -i installed Installed versions: 3.7.0{tbz2}[1](16:37:53 16/08/11)(python_abis_2.4 python_abis_2.5 python_abis_2.6 python_abis_2.7 python_abis_3.1 python_abis_3.2 -python_abis_2.5-jython -python_abis_2.7-pypy-1.5 -python_abis_3.3) This basically means that zope.interface is installed in the site-packages of my Python 2.4 (though it fails with this version), 2.5, 2.6, 2.7, 3.1 and 3.2, and not installed for Python 3.3, Jython and PyPy. Also note that Gentoo correctly installs these Python packages as eggs, including their .egg-info directory. I hope I could be of some help! Cheers, Attila
Have you tried the allowed-eggs-from-site-packages [1] option?
Yes. Didn't have any effect, it seemed.
Reinout
-- Reinout van Rees http://reinout.vanrees.org/ reinout@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham"
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig