https://bugzilla.redhat.com/show_bug.cgi?id=864464
--- Comment #17 from Lorenzo Gil Sanchez <lorenzo.gil.sanchez(a)gmail.com> ---
I built the rpm with the python-tox-1.4.2-4.fc17.src.rpm and installed it on my
Fedora 17 box. After installing it, the tox script in /bin/tox looks like this:
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'tox==1.4.2','console_scripts','tox'
__requires__ = 'tox==1.4.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('tox==1.4.2', 'console_scripts',
'tox')()
)
And if you try to use it you get this error:
Traceback (most recent call last):
File "/usr/bin/tox", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.2/site-packages/pkg_resources.py", line 2736, in
<module>
working_set.require(__requires__)
File "/usr/lib/python3.2/site-packages/pkg_resources.py", line 690, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.2/site-packages/pkg_resources.py", line 588, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: tox==1.4.2
The tox libraries are installed in /usr/lib/python2.7/site-packages/tox/ but
the tox script has the wrong shebang: #!/usr/bin/python3
To fix this problem we can do two things:
A) Don't build with python3 if we are not creating the python3 package until
we get the python3-virtualenv dependency
B) Fix the shebangs in the %prep step as I did in my package with the 'find'
commands.
--
You are receiving this mail because:
You are on the CC list for the bug.