New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setuptools installs as older version #43

bb-migration opened this Issue Jul 15, 2013 · 1 comment


None yet
1 participant

bb-migration commented Jul 15, 2013

Originally reported by: jaraco (Bitbucket: jaraco, GitHub: jaraco)

In setuptools 0.9.1, the code was changed to reduce the number of places where the version number was recorded. To accomplish this, it imported setuptools and read setuptools.__version__. It turns out that in the upgrade scenario, this causes the new version of setuptools to be installed but with the older version number. Observe:

jenkins@myhost:~/jobs/myapp/workspace/services$ virtualenv --setuptools myservice
New python executable in myservice/bin/python2.7
Also creating executable in myservice/bin/python
Installing setuptools............done.
Installing pip...............done.
jenkins@myhost:~/jobs/myapp/workspace/services$ myservice/bin/easy_install setuptools==0.9.3
Searching for setuptools==0.9.3
Best match: setuptools 0.9.3
Processing setuptools-0.9.3.tar.gz
Running setuptools-0.9.3/ -q bdist_egg --dist-dir /tmp/easy_install-SbxnMA/setuptools-0.9.3/egg-dist-tmp-QR2x8j
/usr/lib/python2.7/distutils/ UserWarning: Unknown distribution option: 'src_root'
setuptools 0.6c11 is already the active version in easy-install.pth
Installing easy_install script to /var/lib/jenkins/jobs/myapp/workspace/services/myservice/bin
Installing easy_install-2.7 script to /var/lib/jenkins/jobs/myapp/workspace/services/myservice/bin

Installed /var/lib/jenkins/jobs/myapp/workspace/services/myservice/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11


This comment has been minimized.

bb-migration commented Jul 15, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):

Load version from the file rather than by importing the module (which is subject to variance based on sys.path). Fixes #43.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment