Mercurial > cpython-lru_cache-weakref
diff setup.py @ 34930:294dabcb379b legacy-trunk
Make parse_makefile fallback to environment variables if nothing is
defined in the makefile. Get CFLAGS from the Makefile, instead of
getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Mon, 25 Apr 2005 07:14:03 +0000 |
| parents | 87719ae9288c |
| children | 526faaab00eb |
line wrap: on
line diff
--- a/setup.py Sun Apr 24 22:26:38 2005 +0000 +++ b/setup.py Mon Apr 25 07:14:03 2005 +0000 @@ -171,8 +171,8 @@ # unfortunately, distutils doesn't let us provide separate C and C++ # compilers if compiler is not None: - (ccshared,opt,base) = sysconfig.get_config_vars('CCSHARED','OPT','BASECFLAGS') - args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared + ' ' + base + (ccshared,cflags) = sysconfig.get_config_vars('CCSHARED','CFLAGS') + args['compiler_so'] = compiler + ' ' + ccshared + ' ' + cflags self.compiler.set_executables(**args) build_ext.build_extensions(self)
