summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-03-22 03:48:31 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-03-22 03:48:31 (GMT)
commitac20f773f3b625121ff5f593fbb9f0934bfb8d8e (patch)
tree9a0b4a3b1214a8796d6784abd95a0127d1c745c9 /Lib/distutils/extension.py
parenta7f225d88af3b7a77b0fd8c0ed6129b46c5af865 (diff)
downloadcpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.zip
cpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.tar.gz
cpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.tar.bz2
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r--Lib/distutils/extension.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py
index f49abad..a63ede2 100644
--- a/Lib/distutils/extension.py
+++ b/Lib/distutils/extension.py
@@ -7,7 +7,7 @@ modules in setup scripts."""
__revision__ = "$Id$"
-import os
+import os, string
from types import *
@@ -168,7 +168,7 @@ def read_setup_file (filename):
elif switch == "-I":
ext.include_dirs.append(value)
elif switch == "-D":
- equals = value.find("=")
+ equals = string.find(value, "=")
if equals == -1: # bare "-DFOO" -- no value
ext.define_macros.append((value, None))
else: # "-DFOO=blah"