diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-08-16 13:56:40 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-08-16 13:56:40 (GMT) |
commit | 6fb8d3a3d6dc74a971811f2936343725f3cdea12 (patch) | |
tree | 62bf10fff7f927de20045311457a9ed8de3b3a0a | |
parent | e3eb1f2b2320bceb10a763ec8691200b85ec287a (diff) | |
download | cpython-6fb8d3a3d6dc74a971811f2936343725f3cdea12.zip cpython-6fb8d3a3d6dc74a971811f2936343725f3cdea12.tar.gz cpython-6fb8d3a3d6dc74a971811f2936343725f3cdea12.tar.bz2 |
[Patch #442530 from twburton]
Provide include_dirs argument to all calls to ._preprocess and ._compile
Fix typo: pattern.search(pattern) should be pattern.search(line)
-rw-r--r-- | Lib/distutils/command/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py index d409691..2df42a5 100644 --- a/Lib/distutils/command/config.py +++ b/Lib/distutils/command/config.py @@ -187,7 +187,7 @@ class config (Command): self._check_compiler() ok = 1 try: - self._preprocess(body, headers, lang) + self._preprocess(body, headers, include_dirs, lang) except CompileError: ok = 0 @@ -205,7 +205,7 @@ class config (Command): """ self._check_compiler() - (src, out) = self._preprocess(body, headers, lang) + (src, out) = self._preprocess(body, headers, include_dirs, lang) if type(pattern) is StringType: pattern = re.compile(pattern) @@ -216,7 +216,7 @@ class config (Command): line = file.readline() if line == '': break - if pattern.search(pattern): + if pattern.search(line): match = 1 break @@ -231,7 +231,7 @@ class config (Command): from distutils.ccompiler import CompileError self._check_compiler() try: - self._compile(body, headers, lang) + self._compile(body, headers, include_dirs, lang) ok = 1 except CompileError: ok = 0 |