diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-11-13 20:33:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 20:33:41 -0500 |
commit | 823780e4c2876a4952d0167851ac18c0799a9e90 (patch) | |
tree | 19f6eeb3805488652faf053d442950ccf2f50225 /setuptools/command | |
parent | 5b6c8d3f49366a88210cef7ee5d9629637108a2b (diff) | |
parent | ca5a81864d5fc3b6bcb1e9186a38e3fbc0d0beff (diff) | |
download | external_python_setuptools-823780e4c2876a4952d0167851ac18c0799a9e90.tar.gz external_python_setuptools-823780e4c2876a4952d0167851ac18c0799a9e90.tar.bz2 external_python_setuptools-823780e4c2876a4952d0167851ac18c0799a9e90.zip |
Merge pull request #1175 from xoviat/build_meta
Build meta: fixes and cleanups
Diffstat (limited to 'setuptools/command')
-rw-r--r-- | setuptools/command/dist_info.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py index c6c6dacb..c45258fa 100644 --- a/setuptools/command/dist_info.py +++ b/setuptools/command/dist_info.py @@ -4,7 +4,6 @@ As defined in the wheel specification """ import os -import shutil from distutils.core import Command from distutils import log @@ -27,14 +26,11 @@ class dist_info(Command): def run(self): egg_info = self.get_finalized_command('egg_info') + egg_info.egg_base = self.egg_base + egg_info.finalize_options() egg_info.run() dist_info_dir = egg_info.egg_info[:-len('.egg-info')] + '.dist-info' log.info("creating '{}'".format(os.path.abspath(dist_info_dir))) bdist_wheel = self.get_finalized_command('bdist_wheel') bdist_wheel.egg2dist(egg_info.egg_info, dist_info_dir) - - if self.egg_base: - destination = os.path.join(self.egg_base, dist_info_dir) - log.info("creating '{}'".format(os.path.abspath(destination))) - shutil.move(dist_info_dir, destination) |