This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients ronaldoussoren
Date 2009-09-03.14:24:42
SpamBayes Score 7.280017e-09
Marked as misclassified No
Message-id <1251987885.23.0.814311669715.issue6834@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-09-03 14:24:45ronaldoussorensetrecipients: + ronaldoussoren
2009-09-03 14:24:45ronaldoussorensetmessageid: <1251987885.23.0.814311669715.issue6834@psf.upfronthosting.co.za>
2009-09-03 14:24:43ronaldoussorenlinkissue6834 messages
2009-09-03 14:24:42ronaldoussorencreate