[New-bugs-announce] [issue7658] OS X pythonw.c compile error with 10.4 or earlier deployment target

Ned Deily report at bugs.python.org
Fri Jan 8 10:06:06 CET 2010

New submission from Ned Deily <nad at acm.org>:

r77031 (trunk) and r77032 (py3k) for Issue6834 enhanced the
the OS X python interpreter launcher, python/pythonw, to
allow user-selection of the interpreter execution architecture
for multiple architecture builds, i.e. 32-bit vs 64-bit, by
using the enhanced capability of the posix_spawn system call
instead of execv.  However, posix_spawn does not exist prior
to OS X 10.5 and it is still important for the OS X installer
to support builds and execution on 10.4 and earlier systems.

The solution here is to modify Mac/Tools/pythonw.c to
conditionally compile calls to execv for builds with a
deployment target of 10.4 or earlier and use posix_spawn
for deployments of 10.5 or above.

Also, correct 32-bit arch names added in configure/configure.in:
for 10.4, they must be the more general "ppc", not "ppc7400".

APPLIES     py3k, trunk

assignee: ronaldoussoren
components: Macintosh
files: issue-pythonw-10-4-py3k-trunk.txt
messages: 97397
nosy: ned.deily, ronaldoussoren
severity: normal
status: open
title: OS X pythonw.c compile error with 10.4 or earlier deployment target
type: compile error
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15785/issue-pythonw-10-4-py3k-trunk.txt

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list