Skip to content
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

Closed
ghost opened this issue Jul 15, 2013 · 1 comment
Closed

Setuptools installs as older version #43

ghost opened this issue Jul 15, 2013 · 1 comment
Labels

Comments

@ghost
Copy link

@ghost ghost 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
Reading http://pypi.python.org/simple/setuptools/
Reading http://peak.telecommunity.com/snapshots/
Reading https://pypi.python.org/pypi/setuptools
Best match: setuptools 0.9.3
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.3.tar.gz#md5=142b8891558ae09fa3b3070e88dca004
Processing setuptools-0.9.3.tar.gz
Running setuptools-0.9.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-SbxnMA/setuptools-0.9.3/egg-dist-tmp-QR2x8j
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'src_root'
  warnings.warn(msg)
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

@ghost
Copy link
Author

@ghost ghost 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.

@ghost ghost added major bug 0.9.4 labels Mar 29, 2016
@ghost ghost closed this Mar 29, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
0 participants