Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218815 - dev-python/setuptools-0.6_rc7-r1 + dev-python/pyrex-0.9.6.4 leads to compilation errors
Summary: dev-python/setuptools-0.6_rc7-r1 + dev-python/pyrex-0.9.6.4 leads to compilat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-22 00:13 UTC by René 'Necoro' Neumann
Modified: 2008-04-22 15:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description René 'Necoro' Neumann 2008-04-22 00:13:04 UTC
When trying to compile fuse-python-0.2 and having =pyrex-0.9.6.4 installed, the compilation fails. This only happens for this exact pyrex version.

I'm not sure if this is a pyrex issue - and thus more packages are involved, or a fuse-python issue. I'll investigate this.
(This error is really interesting ... as pyrex is not used by fuse-python in any way ...)

The error message:
building 'fuseparts._fusemodule' extension
Traceback (most recent call last):
  File "setup.py", line 113, in <module>
    distclass = MyDistribution)
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "setup.py", line 42, in run_command
    return Distribution.run_command(self, command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "setup.py", line 42, in run_command
    return Distribution.run_command(self, command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 46, in run
    _build_ext.run(self)
  File "/usr/lib/python2.5/distutils/command/build_ext.py", line 290, in run
    self.build_extensions()
  File "/usr/lib/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line 82, in build_extensions
    self.build_extension(ext)
  File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 175, in build_extension
    _build_ext.build_extension(self,ext)
  File "/usr/lib/python2.5/distutils/command/build_ext.py", line 453, in build_extension
    sources = self.swig_sources(sources, ext)
  File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 77, in swig_sources
    sources = _build_ext.swig_sources(self, sources) or sources
  File "/usr/lib/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line 87, in swig_sources
    return _build_ext.build_ext.swig_sources(self, sources, extension)
  File "/usr/lib/python2.5/distutils/command/build_ext.py", line 537, in swig_sources
    ('-c++' in extension.swig_opts):
AttributeError: 'NoneType' object has no attribute 'swig_opts'
Comment 1 René 'Necoro' Neumann 2008-04-22 00:53:56 UTC
Ok - found the solution (I hope): dev-python/setuptools-0.6_rc7-r1 is the culprit.

If this version _and_ pyrex-0.9.6.4 is installed it fails.
If setuptools is removed: It works.
If pyrex is removed or downgraded: It works.
If setuptools is upgraded to 0.6_rc8: It works.

And as the changelog for setuptools notes: "Updated Pyrex support to work with Pyrex 0.9.6 and higher." this really seems to be the reason.

Now the question is: How to make sure that setuptools-0.6_rc7 and >pyrex-0.9.6 aren't installed together?
Comment 2 Ali Polatel (RETIRED) gentoo-dev 2008-04-22 15:46:45 UTC
(In reply to comment #1)
 
> Now the question is: How to make sure that setuptools-0.6_rc7 and >pyrex-0.9.6
> aren't installed together?
> 

Added a blocker to pyrex-0.6.4 for older setuptools. Thanks for reporting :)