[mac] Shall we ship OOo with internal python on Mac?
Hi *, as the baseline of Mac OSX 10.4 only ships with python version 2.3, OOo is compiled against that version. This is not a problem when running python from within OOo, you can run python macros on 10.4/10.5/10.6 with no problem with a default installation of Mac OSX. There is a big BUT however: On never versions of Mac OSX, it is not possible to run standalone python with pyuno. I.e. you cannot run python from outside OOo and run your script. You'll get incompatible version style errors. (newer versions of Mac OSX ship with the 2.3 basic framework, but only have python2.5 and 2.6 launchers. I failed to get it to import uno on 10.6, no matter what tricks with environment variables I tried. Maybe there's some trick to get it running, but I gave up. I'm neither a python nor a Mac user, so there might still be a way though. (Again: running python macros from within OOo is not a problem, python loaded via OOo's library gets things right) Eric Bachard made me aware on IRC that the python in OOo's sources is already at 2.6.1 and made me start working on it. For some reason Eric cut communication after I filed the issues with patches sigh/, so I finished it myself. Main issue is http://qa.openoffice.org/issues/show_bug.cgi?id=111496 Other issues with the corresponding patches can be found in the depending issues. The questions basically are: Should OOo for Mac ship with internal python? Or should it still use system-python? Anyone a python-guru/deep into Apple's Framework stuff who can tell how to get a import uno work on Mac OSX 10.4 from outside OOo? Anyone into python extensions and want to give internal python 2.6.1 a thorough test? Anyone for code-review? If necessary, I could provide installsets for PPC (build-OS: 10.4) and Intel (build-OS: 10.6). ciao Christian - To unsubscribe, e-mail: mac-unsubscr...@porting.openoffice.org For additional commands, e-mail: mac-h...@porting.openoffice.org
Re: [mac] Shall we ship OOo with internal python on Mac?
Hi Florian, *, On Wed, May 19, 2010 at 2:34 PM, Florian Ludwig Heckl flor...@florian-heckl.de wrote: The questions basically are: Should OOo for Mac ship with internal python? Or should it still use system-python? Does a normal import uno work with the thus provided python. (Users would still need to adapt their PATH or launch the provided python explicitly) With internal python, it would then work with the OOo-provided python. They would have to call OOo's python manually, as OOo wouldn't be in their PATH, so they'd run /path/to/OpenOffice.org.app/Contents/MacOS/python and they're ready to type import uno That script sets the needed environment variables (PYHONPATH, URE_BOOTSTRAP, etc) and starts the internal Python, like it would be the case on other operating systems. If the internal python should be run as-is, i.e. without the OOo-specific variables, then the user could also run path/to/OpenOffice.org.app/Contents/basis-link/program/OOoPython.framework/Versions/2.6/bin/python2.6 Anyone a python-guru/deep into Apple's Framework stuff who can tell how to get a import uno work on Mac OSX 10.4 from outside OOo? Reading it again, I wasn't very clear/that statement is very misleading. What I really meant is: In case we stick with system-python, is there anyone willing to dig into getting it to run from outisde OOo? I.e. does anyone know a way on how to use python from outside OOo with the current version of OOo that uses system python. This is no problem on 10.4, as that comes with the used 2.3 version, but doesn't work (at least I couldn't manage) with 10.6 This won't be a problem with internal python. Anyone into python extensions and want to give internal python 2.6.1 a thorough test? Anyone for code-review? If we decide on a 'yes' for the main question, I can do so. Thanks a lot, ciao Christian - To unsubscribe, e-mail: mac-unsubscr...@porting.openoffice.org For additional commands, e-mail: mac-h...@porting.openoffice.org