]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Made distutils understand the MacPython Carbon runtime model. Distutils will build...
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 17 May 2001 12:52:01 +0000 (12:52 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 17 May 2001 12:52:01 +0000 (12:52 +0000)
Lib/distutils/mwerkscompiler.py
Lib/distutils/sysconfig.py

index 2edc8259bfd456bde7b82811eedaa5672f84f463..981fd95f01d8ba19a853c95a223ad7e34729e877 100644 (file)
@@ -114,6 +114,8 @@ class MWerksCompiler (CCompiler) :
         # into the project.
         if output_filename[-8:] == '.ppc.slb':
             basename = output_filename[:-8]
+        elif output_filename[-11:] == '.carbon.slb':
+            basename = output_filename[:-11]
         else:
             basename = os.path.strip(output_filename)[0]
         projectname = basename + '.mcp'
index 91f9279d875551142015c411ecdf285d0721de7c..473faea85e8c85fbb4a7812d1287862f2320b0c2 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)
 
+    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")