]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport Jack's checkin 1.35 and Guido's checkin 1.36:
authorThomas Wouters <thomas@python.org>
Thu, 19 Jul 2001 11:13:35 +0000 (11:13 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 19 Jul 2001 11:13:35 +0000 (11:13 +0000)
Made distutils understand the MacPython Carbon runtime model. Distutils will
build for the runtime model you are currently using for the interpreter.

Lib/distutils/sysconfig.py

index 91f9279d875551142015c411ecdf285d0721de7c..d013d1b8328820c457970ea779d22eadc831b2af 100644 (file)
@@ -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")