]> granicus.if.org Git - python/commitdiff
[Patch #588809] Remove check of environment variables; sysconfig.py will do that now
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 4 Nov 2002 19:50:03 +0000 (19:50 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 4 Nov 2002 19:50:03 +0000 (19:50 +0000)
Lib/distutils/command/build_ext.py

index 11ab59528adf88adb1c4f6a0d549f038943e1405..934b4576e636b2ad57daf15c30da884adb44a6e2 100644 (file)
@@ -451,14 +451,6 @@ class build_ext (Command):
         for undef in ext.undef_macros:
             macros.append((undef,))
 
-        # XXX and if we support CFLAGS, why not CC (compiler
-        # executable), CPPFLAGS (pre-processor options), and LDFLAGS
-        # (linker options) too?
-        # XXX should we use shlex to properly parse CFLAGS?
-
-        if os.environ.has_key('CFLAGS'):
-            extra_args.extend(string.split(os.environ['CFLAGS']))
-
         objects = self.compiler.compile(sources,
                                         output_dir=self.build_temp,
                                         macros=macros,
@@ -485,7 +477,6 @@ class build_ext (Command):
             objects.extend(ext.extra_objects)
         extra_args = ext.extra_link_args or []
 
-
         self.compiler.link_shared_object(
             objects, ext_filename,
             libraries=self.get_libraries(ext),