diff options
author | Greg Ward <gward@python.net> | 2000-03-07 03:30:09 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-03-07 03:30:09 (GMT) |
commit | 0eff87a570fb6395b50ef815792f30de076203aa (patch) | |
tree | c669793340d97aff5eb8527515c4fad83f7a265f /Lib | |
parent | 5091929c2cf04bfbd545835d2435e43bda6afa05 (diff) | |
download | cpython-0eff87a570fb6395b50ef815792f30de076203aa.zip cpython-0eff87a570fb6395b50ef815792f30de076203aa.tar.gz cpython-0eff87a570fb6395b50ef815792f30de076203aa.tar.bz2 |
Patch from Corran Webster <cwebster@nevada.edu>: add '_init_mac()'.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/sysconfig.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index e291aec..2107ffe 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -153,6 +153,27 @@ def _init_nt(): g['exec_prefix'] = exec_prefix +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(sys.exec_prefix, "Mac", "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, "Mac", "Plugins") + + # XXX hmmm.. a normal install puts include files here + g['INCLUDEPY'] = os.path.join (sys.prefix, 'Include' ) + + g['SO'] = '.ppc.slb' + g['exec_prefix'] = sys.exec_prefix + print sys.prefix + g['install_lib'] = os.path.join(sys.exec_prefix, "Lib") + g['install_platlib'] = os.path.join(sys.exec_prefix, "Mac", "Lib") + + try: exec "_init_" + os.name except NameError: @@ -164,3 +185,4 @@ else: del _init_posix del _init_nt +del _init_mac |