]> granicus.if.org Git - python/commitdiff
Don't bother reading config.h on NT or Mac OS. (It's not really needed
authorGreg Ward <gward@python.net>
Fri, 14 Apr 2000 00:39:31 +0000 (00:39 +0000)
committerGreg Ward <gward@python.net>
Fri, 14 Apr 2000 00:39:31 +0000 (00:39 +0000)
on Unix either, so should probably disappear entirely.)

Lib/distutils/sysconfig.py

index 3f345fbd12cf8700729407b247338aa87bd49406..f7c2e7832665d467142eb9edee4e5b1ba8c82d23 100644 (file)
@@ -222,8 +222,6 @@ def _init_posix():
 def _init_nt():
     """Initialize the module as appropriate for NT"""
     g = globals()
-    # load config.h, though I don't know how useful this is
-    parse_config_h(open(get_config_h_filename()), g)
     # set basic install directories
     g['LIBDEST'] = get_python_lib(plat_specific=0, standard_lib=1)
     g['BINLIBDEST'] = get_python_lib(plat_specific=1, standard_lib=1)
@@ -238,10 +236,6 @@ def _init_nt():
 def _init_mac():
     """Initialize the module as appropriate for Macintosh systems"""
     g = globals()
-    # load the installed config.h (what if not installed? - still need to
-    # be able to install packages which don't require compilation)
-    parse_config_h(open(
-            os.path.join(EXEC_PREFIX, "Mac", "Include", "config.h")), g)
     # set basic install directories
     g['LIBDEST'] = get_python_lib(plat_specific=0, standard_lib=1)
     g['BINLIBDEST'] = get_python_lib(plat_specific=1, standard_lib=1)