New submission from Ronald Oussoren <[email protected]>:
Note: this is mostly a reminder for myself to clean up the pythonw stub
executable
The current implementation of pythonw on OSX uses exec to start an
executable inside the framework, this is needed to be able to use GUI
functionality from the command-line without resorting to undocumented
and unsupported system APIs. To deal with selection between 32-bit and
64-bit the framework contains a number of python executables.
Using "posix_spawnattr_setbinpref_np", "posix_spawnattr_setflags" and
"posix_spawn" it is possible to do away with the additional executables,
leaving a simpler situation.
Nice to have features:
* python(1) on SnowLeopard has a system preference to select between 32-
bit and 64-bit:
$ defaults read com.apple.versioner.python
{
"Prefer-32-Bit" = 1;
}
(The "versioner" appears to be a private Apple library/tool,
reimplementing the functionality would be fairly trivial)
* It would be nice to have a command-line switch as well
* It would be nice if the stub executable could be reused by tools like
virtualenv without recompilation
----------
assignee: ronaldoussoren
components: Macintosh
keywords: easy
messages: 92210
nosy: ronaldoussoren
severity: normal
stage: needs patch
status: open
title: use different mechanism for pythonw on osx
type: feature request
versions: Python 2.7, Python 3.2
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue6834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com