Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd13a20

Browse files
committed
Made distutils understand the MacPython Carbon runtime model. Distutils will build for the runtime model you are currently using for the interpreter.
1 parent 6f84ed5 commit dd13a20

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/distutils/mwerkscompiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def link (self,
114114
# into the project.
115115
if output_filename[-8:] == '.ppc.slb':
116116
basename = output_filename[:-8]
117+
elif output_filename[-11:] == '.carbon.slb':
118+
basename = output_filename[:-11]
117119
else:
118120
basename = os.path.strip(output_filename)[0]
119121
projectname = basename + '.mcp'

Lib/distutils/sysconfig.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,11 @@ def _init_mac():
339339
# XXX hmmm.. a normal install puts include files here
340340
g['INCLUDEPY'] = get_python_inc(plat_specific=0)
341341

342+
import MacOS
343+
if not hasattr(MacOS, 'runtimemodel'):
342344
g['SO'] = '.ppc.slb'
345+
else:
346+
g['SO'] = '.%s.slb' % MacOS.runtimemodel
343347

344348
# XXX are these used anywhere?
345349
g['install_lib'] = os.path.join(EXEC_PREFIX, "Lib")

0 commit comments

Comments
 (0)