Fix packaging command registry to let Windows machines find bdist_msi

This commit is contained in:
Éric Araujo 2011-08-31 16:12:31 +02:00
parent cabca45f60
commit 5bb7345132

View File

@ -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)