]> granicus.if.org Git - python/commitdiff
Now handles NT, through '_init_nt()' function (courtesy of
authorGreg Ward <gward@python.net>
Tue, 8 Jun 1999 01:58:36 +0000 (01:58 +0000)
committerGreg Ward <gward@python.net>
Tue, 8 Jun 1999 01:58:36 +0000 (01:58 +0000)
Amos Latteier <amos@aracnet.com>).

Lib/distutils/sysconfig.py

index e71ae4668a1fd21bd38e101edb77935ab8273f96..5c60ca4a491916ba5f73f1e90cbe1bc9ff433c60 100644 (file)
@@ -129,6 +129,16 @@ def _init_posix():
     parse_makefile(open(get_makefile_filename()), g)
 
 
+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(
+            os.path.join(sys.exec_prefix, "include", "config.h")), g)
+    # set basic install directories
+    g['LIBDEST']=os.path.join(sys.exec_prefix, "Lib")
+    g['BINLIBDEST']=os.path.join(sys.exec_prefix, "Lib")
+
 
 try:
     exec "_init_" + os.name
@@ -139,3 +149,4 @@ else:
     exec "_init_%s()" % os.name
 
 del _init_posix
+del _init_nt