Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 482478

Summary: dev-python/twisted-core-13.0.0-r1 egg mismatch compared to consolidated Twisted tarball
Product: Gentoo Linux Reporter: Julian Ospald <hasufell>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: VERIFIED FIXED    
Severity: normal Keywords: REGRESSION
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=482442
https://bugs.gentoo.org/show_bug.cgi?id=299736
Whiteboard:
Package list:
Runtime testing required: ---

Description Julian Ospald 2013-08-26 00:24:07 UTC
# python2
Python 2.7.5 (default, Aug 24 2013, 15:29:55) 
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.require("Twisted")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Twisted
>>>


Some applications such as net-fs/tahoe-lafs rely on this function call to work and break in many places if it doesn't. I do not believe this has to be fixed in the application. This is either a distribution problem or upstream messed up their package.
Comment 1 Julian Ospald 2013-08-26 00:27:12 UTC
this is caused by the 13.0.0 13.0.0-r1 bump so I suspect this is an eclass error
Comment 2 Mike Gilbert gentoo-dev 2013-08-26 00:32:26 UTC
twisted-core-13.0.0 installs two egg-info entries:

Twisted-13.0.0-py2.7.egg-info
Twisted_Core-13.0.0-py2.7.egg-info

The former is created via touch in the ebuild:

touch "${ED}$(python_get_sitedir)/Twisted-${PV}-py$(python_get_version).egg-info"
Comment 3 Julian Ospald 2013-08-26 00:34:57 UTC
satan, so we'll probably need a revbump here
Comment 4 Mike Gilbert gentoo-dev 2013-08-26 00:44:05 UTC
+*twisted-core-13.0.0-r2 (26 Aug 2013)
+
+  26 Aug 2013; Mike Gilbert <floppym@gentoo.org> +twisted-core-13.0.0-r2.ebuild,
+  -twisted-core-13.0.0-r1.ebuild:
+  Install missing egg-info file, bug 428478.

Should be fixed; please confirm.