diff options
author | Greg Ward <gward@python.net> | 1999-06-08 01:58:36 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 1999-06-08 01:58:36 (GMT) |
commit | 4d74d73b0700c97617aeae3b57b96e576316a187 (patch) | |
tree | 4645acb7d51ac75b714522580bf366101e86f2d1 /Lib | |
parent | 3f75741844f0b1b37bef5f48023f462bc22153a6 (diff) | |
download | cpython-4d74d73b0700c97617aeae3b57b96e576316a187.zip cpython-4d74d73b0700c97617aeae3b57b96e576316a187.tar.gz cpython-4d74d73b0700c97617aeae3b57b96e576316a187.tar.bz2 |
Now handles NT, through '_init_nt()' function (courtesy of
Amos Latteier <amos@aracnet.com>).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/sysconfig.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index e71ae46..5c60ca4 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -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 |