aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-07-15 14:40:17 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-07-15 14:40:17 -0400
commitbae650322899670688e66ff7167cbf1ab34d8dd0 (patch)
tree3a4200394a26d5a0218d070e57c79d9f58ea192a /setup.py
parent6cd0dbf7751bdce24975f384f5d810f5175b98a6 (diff)
downloadexternal_python_setuptools-bae650322899670688e66ff7167cbf1ab34d8dd0.tar.gz
external_python_setuptools-bae650322899670688e66ff7167cbf1ab34d8dd0.tar.bz2
external_python_setuptools-bae650322899670688e66ff7167cbf1ab34d8dd0.zip
Load version from the file rather than by importing the module (which is subject to variance based on sys.path). Fixes #43.0.9.4
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 4b90dfbd..d716ee2e 100755
--- a/setup.py
+++ b/setup.py
@@ -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",