[lucid] installs old version of setuptools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-virtualenv (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-virtualenv
python-virtualenv 1.3.3-1ubuntu1 in lucid installs an old version of setuptools:
astraw@computer:~$ dpkg -L python-virtualenv | grep setuptools
/usr/share/
/usr/share/
astraw@computer:~$ apt-cache show python-setuptools | grep Version
Version: 0.6.10-1ubuntu1
Python-Version: 2.5, 2.6
Running the following script results in a traceback.
------------- start of test script
#!/bin/bash
set -e
TARGET=PYst
rm -rf foo
rm -rf $TARGET
cat > setup.py <<EOF
from setuptools import setup
setup(name='foo',
version=
packages=
zip_
)
EOF
mkdir foo
touch foo/__init__.py
virtualenv $TARGET
$TARGET/bin/python setup.py install
------------- end of test script
The traceback is:
Traceback (most recent call last):
File "setup.py", line 6, in <module>
zip_safe=False,
File "/usr/lib/
_setup_
File "/tmp/PYst/
File "/usr/lib/
self.
File "/tmp/PYst/
File "/tmp/PYst/
while parts and parts[-
ImportError: <module 'setuptools.dist' from '/tmp/PYst/
Rebuilding virtualenv 1.3.3-1ubuntu1 does not fix the issue, but installing virtualenv 1.4.5 fixes the issue. (I used 1.4.5-1 from my PPA.)
This bug can be resolved by switching the setuptools egg which is distributed with the virtualenv package. A quick workaround is builind the package from source copying the setuptools-0.6c10 egg. over the included setuptools-0.6c9 , but this is quite dirty