The bdist_msi command is only available in Python 2.5 and up.

This commit is contained in:
Anthony Tuininga 2007-09-24 18:35:20 +00:00
parent 183826cf6f
commit 87df7241c8
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ Unix platforms
import sys
if sys.platform == "win32":
if sys.platform == "win32" and sys.version_info[:2] >= (2, 5):
import distutils.command.bdist_msi
import distutils.command.bdist_wininst
import distutils.command.build
@ -169,7 +169,7 @@ class build(distutils.command.build.build):
commandClasses = dict(build = build)
# tweak the Windows installer names to include the Oracle version
if sys.platform == "win32":
if sys.platform == "win32" and sys.version_info[:2] >= (2, 5):
class bdist_msi(distutils.command.bdist_msi.bdist_msi):