Mercurial > cpython-lru_cache-weakref
diff setup.py @ 34306:f1c35da64d55 legacy-trunk
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.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Sun, 02 Jan 2005 21:54:07 +0000 |
| parents | 5dc274e15822 |
| children | 9c62e7d690a5 |
line wrap: on
line diff
--- a/setup.py Sun Jan 02 06:17:33 2005 +0000 +++ b/setup.py Sun Jan 02 21:54:07 2005 +0000 @@ -270,8 +270,9 @@ 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,
