Message92210
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 |
|
Date |
User |
Action |
Args |
2009-09-03 14:24:45 | ronaldoussoren | set | recipients:
+ ronaldoussoren |
2009-09-03 14:24:45 | ronaldoussoren | set | messageid: <1251987885.23.0.814311669715.issue6834@psf.upfronthosting.co.za> |
2009-09-03 14:24:43 | ronaldoussoren | link | issue6834 messages |
2009-09-03 14:24:42 | ronaldoussoren | create | |
|