Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288547 - dev-python/setuptools-0.6-r1 KeyError in build_ext.py
Summary: dev-python/setuptools-0.6-r1 KeyError in build_ext.py
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: http://bitbucket.org/tarek/distribute...
Whiteboard:
Keywords:
Depends on: 289312
Blocks:
  Show dependency tree
 
Reported: 2009-10-11 12:18 UTC by Robert Buchholz (RETIRED)
Modified: 2009-10-31 15:08 UTC (History)
1 user (show)

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 Robert Buchholz (RETIRED) gentoo-dev 2009-10-11 12:18:25 UTC
several ebuilds fail to build for me due to a backtrace in setuptools-0.6-r1
( dev-python/m2crypto-0.19.1 and net-analyzer/net-snmp-5.4.2.1-r1 ):

running build_ext
Traceback (most recent call last):
  File "setup.py", line 44, in <module>
    libraries=libs )
  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.6/distutils/command/build.py", line 134, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.6/site-packages/setuptools/command/build_ext.py", line 46, in run
    _build_ext.run(self)
  File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/usr/lib64/python2.6/site-packages/Pyrex/Distutils/build_ext.py", line 82, in build_extensions
    self.build_extension(ext)
  File "/usr/lib64/python2.6/site-packages/setuptools/command/build_ext.py", line 175, in build_extension
    _build_ext.build_extension(self,ext)
  File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 460, in build_extension
    ext_path = self.get_ext_fullpath(ext.name)
  File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 633, in get_ext_fullpath
    filename = self.get_ext_filename(modpath[-1])
  File "/usr/lib64/python2.6/site-packages/setuptools/command/build_ext.py", line 85, in get_ext_filename
    ext = self.ext_map[fullname]
KeyError: 'client_intf'
make: *** [pythonmodules] Error 1
 * ERROR: net-analyzer/net-snmp-5.4.2.1-r1 failed:
 *   emake failed


This is known upstream and fixed in the latest distribute version:
http://bitbucket.org/tarek/distribute/issue/41/
http://bitbucket.org/tarek/distribute/changeset/e07e5309cd2a/

I tested the patch, it works for me.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-11 14:09:52 UTC
This bug should be fixed in >=dev-python/setuptools-0.6.2.
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2009-10-11 14:41:11 UTC
That does not help stable users.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-15 22:32:14 UTC
(In reply to comment #2)

You can file the request for stabilization of dev-python/setuptools-0.6.4.
Comment 4 Dennis Schridde 2009-10-31 14:58:31 UTC
Probably dev-lang/python-2.6.3 should block
<dev-python/setuptools-0.6.XXX.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-31 15:08:28 UTC
If reporter of this bug was using dev-lang/python-2.6.3, then this bug is a duplicate of bug #289067.

(In reply to comment #4)

dev-lang/python-2.6.3 won't be stabilized. dev-lang/python-2.6.4 doesn't cause any problems for older versions of dev-python/setuptools.