diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-05 17:16:04 +0200 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-05 17:16:04 +0200 |
| commit | 55917e59e299a4e21357d01cad5a26b504c615b7 (patch) | |
| tree | 4705776c8eed2763083e1bc37dac8343124aa4ec /setup.py | |
| parent | e42d759418ad2edbcc3b5a1b7812acf515db8b12 (diff) | |
| download | python-setuptools-bitbucket-55917e59e299a4e21357d01cad5a26b504c615b7.tar.gz | |
Use version from version module in setup script
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,10 +20,10 @@ 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() +ver_path = convert_path('setuptools/version.py') +ver_file = open(ver_path) +exec(ver_file.read(), main_ns) +ver_file.close() import setuptools from setuptools.command.build_py import build_py as _build_py |
