diff options
author | Éric Araujo <merwok@netwok.org> | 2011-08-31 14:12:31 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-08-31 14:12:31 (GMT) |
commit | 5bb734513239fe4d0307d2b9ca5f4aab0f0feae8 (patch) | |
tree | 741e0405213c7baef79915e4a5d9209fec07f4f1 | |
parent | cabca45f6066f3c57a40ae67a1b186770928ec3a (diff) | |
download | cpython-5bb734513239fe4d0307d2b9ca5f4aab0f0feae8.zip cpython-5bb734513239fe4d0307d2b9ca5f4aab0f0feae8.tar.gz cpython-5bb734513239fe4d0307d2b9ca5f4aab0f0feae8.tar.bz2 |
Fix packaging command registry to let Windows machines find bdist_msi
-rw-r--r-- | Lib/packaging/command/__init__.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/packaging/command/__init__.py b/Lib/packaging/command/__init__.py index 2b52190..8f8c08c 100644 --- a/Lib/packaging/command/__init__.py +++ b/Lib/packaging/command/__init__.py @@ -1,5 +1,5 @@ """Subpackage containing all standard commands.""" - +import os from packaging.errors import PackagingModuleError from packaging.util import resolve_name @@ -28,7 +28,12 @@ _COMMANDS = { 'bdist_wininst': 'packaging.command.bdist_wininst.bdist_wininst', 'register': 'packaging.command.register.register', 'upload': 'packaging.command.upload.upload', - 'upload_docs': 'packaging.command.upload_docs.upload_docs'} + 'upload_docs': 'packaging.command.upload_docs.upload_docs', +} + +# XXX this is crappy +if os.name == 'nt': + _COMMANDS['bdist_msi'] = 'packaging.command.bdist_msi' # XXX use OrderedDict to preserve the grouping (build-related, install-related, # distribution-related) |