building/running alpha 8 on MacOS

Is this possible?
I’m trying:
python bootstrap.py -d
…and that works. (It seems to need the -d; otherwise it won’t find the setuptools that MacPorts installs.)
But when I do bin/buildout, I get this mess:
Traceback (most recent call last): File "/var/folders/K+/K+C9J9XbFpa8wjRCkcMl1U+++TI/-Tmp-/tmp3WxCTH", line 11, in <module> execfile('/Users/felipe/code/mailman/./setup.py') File "/Users/felipe/code/mailman/./setup.py", line 110, in <module> 'zope.testing<4', File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 113, in setup _setup_distribution = dist = klass(attrs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py", line 223, in __init__ _Distribution.__init__(self,attrs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 270, in __init__ self.finalize_options() File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py", line 256, in finalize_options ep.load()(self, ep.name, value) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1912, in load raise ImportError("%r has no %r attribute" % (entry,attr)) ImportError: <module 'setuptools.dist' from '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.pyc'> has no 'check_packages' attribute While: Installing. Processing develop directory '/Users/felipe/code/mailman/.'.
An internal error occurred due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "/private/var/folders/K+/K+C9J9XbFpa8wjRCkcMl1U+++TI/-Tmp-/tmpQ_QZXK/zc.buildout-1.5.2-py2.6.egg/zc/buildout/buildout.py", line 1805, in main File "/private/var/folders/K+/K+C9J9XbFpa8wjRCkcMl1U+++TI/-Tmp-/tmpQ_QZXK/zc.buildout-1.5.2-py2.6.egg/zc/buildout/buildout.py", line 446, in install File "/private/var/folders/K+/K+C9J9XbFpa8wjRCkcMl1U+++TI/-Tmp-/tmpQ_QZXK/zc.buildout-1.5.2-py2.6.egg/zc/buildout/buildout.py", line 686, in _develop File "/private/var/folders/K+/K+C9J9XbFpa8wjRCkcMl1U+++TI/-Tmp-/tmpQ_QZXK/zc.buildout-1.5.2-py2.6.egg/zc/buildout/easy_install.py", line 1189, in develop AssertionError
Does buildout not work on MacOS?
-FG

On Nov 25, 2011, at 07:15 PM, Felipe Gasper wrote:
Hmm, the distribute_setup.py should pick up the right version of distribute instead of setuptools. I don't know what version MacPorts has, but I do know that on Debian/Ubuntu, setuptools is really distribute.
These days, buildout is only needed for the test suite, so you could try
creating a virtualenv and running python setup.py install
from there. You
might have to provide --no-site-packages to virtualenv if the MacPorts
packages get in the way.
-Barry

On Nov 25, 2011, at 07:15 PM, Felipe Gasper wrote:
Hmm, the distribute_setup.py should pick up the right version of distribute instead of setuptools. I don't know what version MacPorts has, but I do know that on Debian/Ubuntu, setuptools is really distribute.
These days, buildout is only needed for the test suite, so you could try
creating a virtualenv and running python setup.py install
from there. You
might have to provide --no-site-packages to virtualenv if the MacPorts
packages get in the way.
-Barry
participants (3)
-
Barry Warsaw
-
Felipe Gasper
-
Stephen J. Turnbull