[Distutils] zc.buildout and ez_setup
Ross Patterson
me at rpatterson.net
Thu Oct 11 02:24:39 CEST 2007
A projects which using ez_setup in its setup.py as described in:
http://peak.telecommunity.com/DevCenter/setuptools#id23
...seems not to play nicely with zc.buildout.
To reproduce make an empty directory and download ez_setup.py and
bootstrap.py into it:
http://peak.telecommunity.com/dist/ez_setup.py
http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py
Then make an empty setup.py::
#!/usr/bin/env python
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup
setup(name='foo')
Make an empty buildout.cfg::
[buildout]
develop = .
Then bootstrap buildout::
$ python bootstrap.py -v
Finally run buildout. Note that an error occurs importing ez_setup::
$ bin/buildout -v
Installing 'zc.buildout', 'setuptools'.
We have the best distribution that satisfies 'zc.buildout'.
Picked: zc.buildout = 1.0.0b30
We have the best distribution that satisfies 'setuptools'.
Picked: setuptools = 0.6c7
Develop: '/tmp/foo/.'
Traceback (most recent call last):
File "/tmp/tmpsDYTIA", line 10, in ?
execfile('/tmp/foo/./setup.py')
File "/tmp/foo/./setup.py", line 2, in ?
import ez_setup
ImportError: No module named ez_setup
While:
Installing.
Processing develop directory '/tmp/foo/.'.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
AssertionError:
Should I post this report anywhere else?
Ross
More information about the Distutils-SIG
mailing list