diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-12-24 13:30:58 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-12-24 13:30:58 (GMT) |
commit | 92919a66d2bd4641a83edff4356805280d77a068 (patch) | |
tree | b3a14baded017d5a0b02eb871dc1bd808b6bdf24 /Misc | |
parent | 1a13cff7a59a1301a220d721088cb98f2feec7ad (diff) | |
download | cpython-92919a66d2bd4641a83edff4356805280d77a068.zip cpython-92919a66d2bd4641a83edff4356805280d77a068.tar.gz cpython-92919a66d2bd4641a83edff4356805280d77a068.tar.bz2 |
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
The previous implementation used execv(2) to run the real interpreter, which means that
you cannot use the arch(1) tool to select the architecture you want to use for a
universal build because that only affects the python/pythonw wrapper and not the actual
interpreter.
The new version uses posix_spawnv with a number of OSX-specific options that ensure that
the real interpreter is started using the same CPU architecture as the wrapper, and that
means that 'arch -ppc python' now actually works.
I've also changed the way that the wrapper looks for the framework: it is now linked to
the framework rather than hardcoding the framework path. This should make it easier to
provide pythonw support in tools like virtualenv.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -12,6 +12,13 @@ What's New in Python 2.7 alpha 2? Core and Builtins ----------------- +- Issue #6834: replace the implementation for the 'python' and 'pythonw' + executables on OSX. + + These executables now work properly with the arch(1) command: + ``arch -ppc python`` will start a universal binary version of python + in PPC mode (unlike previous releases). + - Issue #1680159: unicode coercion during an 'in' operation no longer masks the underlying error when the coercion fails for the left hand operand. |