aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/__init__.py1
-rwxr-xr-xsetuptools/command/bdist_wininst.py8
2 files changed, 8 insertions, 1 deletions
diff --git a/setuptools/command/__init__.py b/setuptools/command/__init__.py
index 454b4a9f..f898822b 100644
--- a/setuptools/command/__init__.py
+++ b/setuptools/command/__init__.py
@@ -9,7 +9,6 @@ import sys
if sys.version>='2.5':
# In Python 2.5 and above, distutils includes its own upload command
__all__.remove('upload')
- __all__.remove('bdist_wininst') # this is only for 'upload' support
from distutils.command.bdist import bdist
diff --git a/setuptools/command/bdist_wininst.py b/setuptools/command/bdist_wininst.py
index e0e5cfb2..9881f3b1 100755
--- a/setuptools/command/bdist_wininst.py
+++ b/setuptools/command/bdist_wininst.py
@@ -20,3 +20,11 @@ class bdist_wininst(_bdist_wininst):
getattr(self.distribution,'dist_files',[]).append(
('bdist_wininst', pyversion, installer_name)
)
+
+ def reinitialize_command (self, command, reinit_subcommands=0):
+ cmd = self.distribution.reinitialize_command(
+ command, reinit_subcommands)
+ if command in ('install', 'install_lib'):
+ cmd.install_lib = None # work around distutils bug
+ return cmd
+