Skip to content

Commit bdb145c

Browse files
author
Richard Jones
committed
2.1-compatibility
1 parent 1121ba5 commit bdb145c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: setup.py,v 1.69 2004-05-26 10:00:53 a1s Exp $
19+
# $Id: setup.py,v 1.70 2004-06-13 00:27:05 richard Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -76,9 +76,9 @@ def finalize_options(self):
7676
if self.target_platform:
7777
# TODO? allow explicit setting from command line
7878
target = self.target_platform
79-
if "bdist_wininst" in cmdopt:
79+
if cmdopt.has_key("bdist_wininst"):
8080
target = "win32"
81-
elif "formats" in cmdopt.get("bdist", {}):
81+
elif cmdopt.get("bdist", {}).has_key("formats"):
8282
formats = cmdopt["bdist"]["formats"][1].split(",")
8383
if formats[0] == "wininst":
8484
target = "win32"
@@ -112,7 +112,7 @@ def finalize_options(self):
112112
self.scripts = [script + ".bat" for script in self.scripts]
113113

114114
# tweak python path for installations outside main python library
115-
if "prefix" in cmdopt.get("install", {}):
115+
if cmdopt.get("install", {}).has_key("prefix"):
116116
prefix = cmdopt['install']['prefix'][1]
117117
version = '%d.%d'%sys.version_info[:2]
118118
self.script_preamble = '''

0 commit comments

Comments
 (0)