diff options
author | xoviat <xoviat@users.noreply.github.com> | 2017-10-15 12:53:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-15 12:53:22 -0500 |
commit | e2e15d52473c52071d331b415bcf949f8e848a22 (patch) | |
tree | 4ed15324dbcd38f20419a052a6d884903c381d3f /setuptools/command/dist_info.py | |
parent | ffb2e6994a3405c2ab007ab9564bb02c9263eb6c (diff) | |
download | python-setuptools-git-e2e15d52473c52071d331b415bcf949f8e848a22.tar.gz |
dist_info: create the egg_info in the same location
This change is a small simplification that simply creates the
egg_info directory in the egg_base location; it's a minor
cleanup that results in some read and it helps with
read-only directories (the egg_info directory is uncontrollable).
Diffstat (limited to 'setuptools/command/dist_info.py')
-rw-r--r-- | setuptools/command/dist_info.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py index c6c6dacb..28b88c88 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,10 @@ class dist_info(Command): def run(self): egg_info = self.get_finalized_command('egg_info') + egg_info.egg_base = self.egg_base 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) |