From: Thomas Wouters Date: Thu, 19 Jul 2001 11:13:35 +0000 (+0000) Subject: Backport Jack's checkin 1.35 and Guido's checkin 1.36: X-Git-Tag: v2.1.1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1d2a9a960bf978231ca085d986182b57c734d9e;p=thirdparty%2FPython%2Fcpython.git Backport Jack's checkin 1.35 and Guido's checkin 1.36: Made distutils understand the MacPython Carbon runtime model. Distutils will build for the runtime model you are currently using for the interpreter. --- diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 91f9279d8755..d013d1b83288 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -339,7 +339,11 @@ def _init_mac(): # XXX hmmm.. a normal install puts include files here g['INCLUDEPY'] = get_python_inc(plat_specific=0) - g['SO'] = '.ppc.slb' + import MacOS + if not hasattr(MacOS, 'runtimemodel'): + g['SO'] = '.ppc.slb' + else: + g['SO'] = '.%s.slb' % MacOS.runtimemodel # XXX are these used anywhere? g['install_lib'] = os.path.join(EXEC_PREFIX, "Lib")