|
16 | 16 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
17 | 17 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
18 | 18 | # |
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 $ |
20 | 20 |
|
21 | 21 | from distutils.core import setup, Extension |
22 | 22 | from distutils.util import get_platform |
@@ -76,9 +76,9 @@ def finalize_options(self): |
76 | 76 | if self.target_platform: |
77 | 77 | # TODO? allow explicit setting from command line |
78 | 78 | target = self.target_platform |
79 | | - if "bdist_wininst" in cmdopt: |
| 79 | + if cmdopt.has_key("bdist_wininst"): |
80 | 80 | target = "win32" |
81 | | - elif "formats" in cmdopt.get("bdist", {}): |
| 81 | + elif cmdopt.get("bdist", {}).has_key("formats"): |
82 | 82 | formats = cmdopt["bdist"]["formats"][1].split(",") |
83 | 83 | if formats[0] == "wininst": |
84 | 84 | target = "win32" |
@@ -112,7 +112,7 @@ def finalize_options(self): |
112 | 112 | self.scripts = [script + ".bat" for script in self.scripts] |
113 | 113 |
|
114 | 114 | # tweak python path for installations outside main python library |
115 | | - if "prefix" in cmdopt.get("install", {}): |
| 115 | + if cmdopt.get("install", {}).has_key("prefix"): |
116 | 116 | prefix = cmdopt['install']['prefix'][1] |
117 | 117 | version = '%d.%d'%sys.version_info[:2] |
118 | 118 | self.script_preamble = ''' |
|
0 commit comments