1. PyPA
  2. Python Packaging Authority Projects
  3. setuptools

Commits

Jason R. Coombs  committed 1aef141

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

  • Participants
  • Parent commits 7003928
  • Branches default
  • Tags 0.9.4

Comments (0)

Files changed (2)

File CHANGES.txt

View file
 =======
 
 -----
+0.9.4
+-----
+
+* Issue #43: Fix issue (introduced in 0.9.1) with version resolution when
+  upgrading over other releases of Setuptools.
+
+-----
 0.9.3
 -----
 

File setup.py

View file
 
 SETUP_COMMANDS = command_ns['__all__']
 
+main_ns = {}
+init_path = convert_path('setuptools/__init__.py')
+init_file = open(init_path)
+exec(init_file.read(), main_ns)
+init_file.close()
+
 import setuptools
 from setuptools.command.build_py import build_py as _build_py
 from setuptools.command.test import test as _test
 
 setup_params = dict(
     name="setuptools",
-    version=setuptools.__version__,
+    version=main_ns['__version__'],
     description="Easily download, build, install, upgrade, and uninstall "
                 "Python packages",
     author="The fellowship of the packaging",