summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-01-02 21:54:07 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-01-02 21:54:07 (GMT)
commit44837719ef2886da0671aed55e99cdae14d24b9d (patch)
tree20a2ef83307f6a0f8066f4ed3bffca3644a778c5 /setup.py
parentc34f8673a194180ab3b258e821f72f25514aa948 (diff)
downloadcpython-44837719ef2886da0671aed55e99cdae14d24b9d.zip
cpython-44837719ef2886da0671aed55e99cdae14d24b9d.tar.gz
cpython-44837719ef2886da0671aed55e99cdae14d24b9d.tar.bz2
Since it is a possibility that LDFLAGS or CPPFLAGS were set with options that
in no way affect library or include directories the code must take that into account and not assume some options were found.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index c8d9aa0..0f7b0b9 100644
--- a/setup.py
+++ b/setup.py
@@ -270,8 +270,9 @@ class PyBuildExt(build_ext):
parser.error = lambda msg: None
parser.add_option(arg_name, dest="dirs", action="append")
options = parser.parse_args(env_val.split())[0]
- for directory in options.dirs:
- add_dir_to_list(dir_list, directory)
+ if options.dirs:
+ for directory in options.dirs:
+ add_dir_to_list(dir_list, directory)
if os.path.normpath(sys.prefix) != '/usr':
add_dir_to_list(self.compiler.library_dirs,