mirror of https://github.com/python/cpython
041645a8cb
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process on OS X. This could cause failures in non-distutils subprocesses and was unreliable since tests or user programs could modify the interpreter environment after distutils set it. Instead, have distutils set the the deployment target only in the environment of each build subprocess. Continue to use the previous algorithm for deriving the deployment target value: if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env: use the interpreter build configure MACOSX_DEPLOYMENT_TARGET elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value: use the env MACOSX_DEPLOYMENT_TARGET else: # env value less than interpreter build configure value raise exception This allows building extensions that can only run on newer versions of the OS than the version python was built for, for example with a python built for 10.3 or later and an extension that needs to be built for 10.5. |
||
---|---|---|
.. | ||
command | ||
tests | ||
README | ||
__init__.py | ||
archive_util.py | ||
bcppcompiler.py | ||
ccompiler.py | ||
cmd.py | ||
config.py | ||
core.py | ||
cygwinccompiler.py | ||
debug.py | ||
dep_util.py | ||
dir_util.py | ||
dist.py | ||
emxccompiler.py | ||
errors.py | ||
extension.py | ||
fancy_getopt.py | ||
file_util.py | ||
filelist.py | ||
log.py | ||
msvc9compiler.py | ||
msvccompiler.py | ||
spawn.py | ||
sysconfig.py | ||
text_file.py | ||
unixccompiler.py | ||
util.py | ||
version.py | ||
versionpredicate.py |
README
This directory contains the Distutils package. There's a full documentation available at: http://docs.python.org/distutils/ The Distutils-SIG web page is also a good starting point: http://www.python.org/sigs/distutils-sig/ WARNING : Distutils must remain compatible with 2.3 $Id$