mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Made distutils understand the MacPython Carbon runtime model. Distutils will build for the runtime model you are currently using for the interpreter.
This commit is contained in:
parent
6f84ed5afc
commit
dd13a20490
2 changed files with 6 additions and 0 deletions
|
@ -114,6 +114,8 @@ class MWerksCompiler (CCompiler) :
|
||||||
# into the project.
|
# into the project.
|
||||||
if output_filename[-8:] == '.ppc.slb':
|
if output_filename[-8:] == '.ppc.slb':
|
||||||
basename = output_filename[:-8]
|
basename = output_filename[:-8]
|
||||||
|
elif output_filename[-11:] == '.carbon.slb':
|
||||||
|
basename = output_filename[:-11]
|
||||||
else:
|
else:
|
||||||
basename = os.path.strip(output_filename)[0]
|
basename = os.path.strip(output_filename)[0]
|
||||||
projectname = basename + '.mcp'
|
projectname = basename + '.mcp'
|
||||||
|
|
|
@ -339,7 +339,11 @@ def _init_mac():
|
||||||
# XXX hmmm.. a normal install puts include files here
|
# XXX hmmm.. a normal install puts include files here
|
||||||
g['INCLUDEPY'] = get_python_inc(plat_specific=0)
|
g['INCLUDEPY'] = get_python_inc(plat_specific=0)
|
||||||
|
|
||||||
|
import MacOS
|
||||||
|
if not hasattr(MacOS, 'runtimemodel'):
|
||||||
g['SO'] = '.ppc.slb'
|
g['SO'] = '.ppc.slb'
|
||||||
|
else:
|
||||||
|
g['SO'] = '.%s.slb' % MacOS.runtimemodel
|
||||||
|
|
||||||
# XXX are these used anywhere?
|
# XXX are these used anywhere?
|
||||||
g['install_lib'] = os.path.join(EXEC_PREFIX, "Lib")
|
g['install_lib'] = os.path.join(EXEC_PREFIX, "Lib")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue