mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
This commit is contained in:
parent
a7f225d88a
commit
ac20f773f3
4 changed files with 13 additions and 13 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue