summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2018-07-14 17:43:23 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2018-07-17 15:02:50 +0300
commit4900abb3db380aaa2e49c035c4f54b7b3b14feab (patch)
treef882840ec82142d0eacaf9bc2ba4624c8129da0e
parentc6aef9546c5f629e15de1fd40b841e4912ea1dd2 (diff)
downloadwheel-git-4900abb3db380aaa2e49c035c4f54b7b3b14feab.tar.gz
Don't store the distinfo_dir variable in the command instance
-rw-r--r--wheel/bdist_wheel.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/wheel/bdist_wheel.py b/wheel/bdist_wheel.py
index bb6257f..8b08976 100644
--- a/wheel/bdist_wheel.py
+++ b/wheel/bdist_wheel.py
@@ -91,7 +91,6 @@ class bdist_wheel(Command):
self.format = 'zip'
self.keep_temp = False
self.dist_dir = None
- self.distinfo_dir = None
self.egginfo_dir = None
self.root_is_pure = None
self.skip_build = None
@@ -248,14 +247,12 @@ class bdist_wheel(Command):
self.set_undefined_options(
'install_egg_info', ('target', 'egginfo_dir'))
- self.distinfo_dir = os.path.join(self.bdist_dir,
- '%s.dist-info' % self.wheel_dist_name)
- self.egg2dist(self.egginfo_dir,
- self.distinfo_dir)
+ distinfo_dir = os.path.join(self.bdist_dir, '%s.dist-info' % self.wheel_dist_name)
+ self.egg2dist(self.egginfo_dir, distinfo_dir)
- self.write_wheelfile(self.distinfo_dir)
+ self.write_wheelfile(distinfo_dir)
- self.write_record(self.bdist_dir, self.distinfo_dir)
+ self.write_record(self.bdist_dir, distinfo_dir)
# Make the archive
if not os.path.exists(self.dist_dir):