Commit bae65032 authored by Jason R. Coombs's avatar Jason R. Coombs

Load version from the file rather than by importing the module (which is...

Load version from the file rather than by importing the module (which is subject to variance based on sys.path). Fixes #43.
parent 6cd0dbf7
......@@ -2,6 +2,13 @@
CHANGES
=======
-----
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
-----
......
......@@ -19,6 +19,12 @@ init_file.close()
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
......@@ -93,7 +99,7 @@ if sys.platform == 'win32' or os.environ.get("SETUPTOOLS_INSTALL_WINDOWS_SPECIFI
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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment