Message47179
I rewrote the shell script pythonw2.4 (which usually
lives in /usr/local/bin) in C. With a link from python
to this C program, users can:
a) Run "python" to use the framework version of Python,
which exists in a valid application bundle (unlike the
current python in /usr/local/bin);
b) Use "#!/usr/local/bin/python" as the first line in
python scripts (unlike the current pythonw in
/usr/local/bin, which Mac OS X interprets to be a shell
script).
Hence, (I believe) this C program avoids the problems
with python and pythonw that are in /usr/local/bin now.
The setup in /usr/local/bin would be:
lrwxr-xr-x python -> python2.4
-rwxr-xr-x python2.4
where python2.4 is the C program calling
/Library/Frameworks/Python.framework/Versions/2.4/bin/python
with the appropriate command-line arguments.
Some modification of the C code may be needed for it to
be consistent with the Python installation process.
Note also that for the non-framework build, python2.4
can just be a link (as it is now). |
|
Date |
User |
Action |
Args |
2007-08-23 15:40:26 | admin | link | issue1056561 messages |
2007-08-23 15:40:26 | admin | create | |
|