[Distutils] That setuptools/Pyrex problem with swig_sources
Peter Wang
pwang at enthought.com
Sat Jan 12 16:47:02 CET 2008
Hi everyone,
I ran into this problem (traceback below) the other day with
setuptools 0.6c7 and Pyrex 0.9.6.4 on python 2.5. I saw Phillip's
post from October regarding this:
http://lists.copyleft.no/pipermail/pyrex/2007-October/002867.html
How do I get this setuptools fix? Moreover, what is the best
recommendation for others who are trying to build my project? Is
there some monkeypatching I can do in my setup.py to work around this
problem? (I see that the problem itself results from a bunch of
monkeypatching...)
Any help would be greatly appreciated. Pyrex is required to build
Chaco on the Mac, and all the Enthought projects use eggs heavily, so
this is sort of a fundamental problem for us...
Thanks,
Peter
---------------------------
(repotest)pwang at hyperion ~/src/Chaco_3.0.0b1/Chaco_3.0.0b1$ python
setup.py bdist_egg
running bdist_egg
running egg_info
writing requirements to Chaco.egg-info/requires.txt
writing Chaco.egg-info/PKG-INFO
writing namespace_packages to Chaco.egg-info/namespace_packages.txt
writing top-level names to Chaco.egg-info/top_level.txt
writing dependency_links to Chaco.egg-info/dependency_links.txt
writing manifest file 'Chaco.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.3-fat/egg
running install_lib
running build_py
running build_ext
building 'enthought.chaco2.contour.contour' extension
Traceback (most recent call last):
File "setup.py", line 77, in <module>
zip_safe = False,
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/Users/pwang/envs/repotest/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg/setuptools/command/bdist_egg.py", line 174,
in run
File "/Users/pwang/envs/repotest/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg/setuptools/command/bdist_egg.py", line 161,
in call_command
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/Users/pwang/envs/repotest/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg/setuptools/command/install_lib.py", line
20, in run
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/install_lib.py", line 112, in build
self.run_command('build_ext')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/Users/pwang/envs/repotest/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg/setuptools/command/build_ext.py", line 46,
in run
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/build_ext.py", line 290, in run
self.build_extensions()
File "/Users/pwang/envs/repotest/lib/python2.5/site-packages/
Pyrex-0.9.6.4-py2.5.egg/Pyrex/Distutils/build_ext.py", line 82, in
build_extensions
self.build_extension(ext)
File "/Users/pwang/envs/repotest/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg/setuptools/command/build_ext.py", line 175,
in build_extension
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/command/build_ext.py", line 453, in build_extension
sources = self.swig_sources(sources, ext)
File "/Users/pwang/envs/repotest/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg/setuptools/command/build_ext.py", line 77,
in swig_sources
TypeError: swig_sources() takes exactly 3 arguments (2 given)
More information about the Distutils-SIG
mailing list