Re: [mac] Shall we ship OOo with internal python on Mac?

2010-08-30 Thread Florian Ludwig Heckl
Hi Christian,

 But yes, filed issue(s) with patches. Meta issue:
 http://qa.openoffice.org/issues/show_bug.cgi?id=111496
 
 scp2 parts are already integrated/applied to some cws, but
 unfortunately the other patches did not receive any comment yet :-(

see my comments in the issue. Patches look fine to me, at least they provide a 
working python...

Kind regards,
Florian

smime.p7s
Description: S/MIME cryptographic signature


Re: [mac] Shall we ship OOo with internal python on Mac?

2010-08-27 Thread Christian Lohmaier
Hi Stephan, *,

On Tue, Aug 24, 2010 at 10:16 AM, Stephan Bergmann
stephan.bergm...@oracle.com wrote:
 On 05/19/10 18:55, Christian Lohmaier wrote:
 [...]
 I just experienced the problem to get pyuno working on Mac OS X 10.6, too.
  At least for me (trying to run the tests in
 testtools/source/bridgetest/pyuno/), it clearly is a problem of system
 python being executed as 64 bit, while OOo's pyuno.so is 32 bit (see below).

For that, there is an environment variable:
VERSIONER_PYTHON_PREFER_32_BIT=yes (but as mentioned earlier, I didn't
manage to get it running, no matter what variables I tried - while
then the architecture matches, the python version itself makes it
fail)

 Christian, did you already file an issue to use internal python on Mac
 (which apparently is the outcome of this thread)?

Outcome of this thread is that apparently  almost nobody seems to care
:-( Just 10 People bothered to reply at all...

But yes, filed issue(s) with patches. Meta issue:
http://qa.openoffice.org/issues/show_bug.cgi?id=111496

scp2 parts are already integrated/applied to some cws, but
unfortunately the other patches did not receive any comment yet :-(

ciao
Christian

-
To unsubscribe, e-mail: mac-unsubscr...@porting.openoffice.org
For additional commands, e-mail: mac-h...@porting.openoffice.org



[mac] Shall we ship OOo with internal python on Mac?

2010-05-19 Thread Christian Lohmaier
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?

2010-05-19 Thread Christian Lohmaier
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