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

Comments

@ghost
Copy link

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 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 closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Jul 4, 2021
Prefer using `Distribution.has_ext_modules` method
jaraco added a commit that referenced this issue Feb 4, 2023
… is subject to variance based on sys.path). Fixes #43.
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
Development

No branches or pull requests

0 participants