Am Mittwoch, den 25.08.2004, 10:44 +0200 schrieb Ralf Schlatterbeck:
> On Mon, Aug 23, 2004 at 11:51:04PM +0200, Martin Kretzschmar wrote:
> > Our current system-python patch does everything mentioned in the
> > #replacing part except
> > 
> >       * the pythonloader.unorc changes,
> >       * using the system's PYTHONPATH setting.
> > 
> > Those need changes in config_office/{configure.in,set_soenv.in} and
> > scp/source/python/python.scp.
> > 
> > (And then packaging the py* files in a deb.)
> Can you send me (or point me to) this patch, so I can serve as an
> alpha-tester?

Rene wrote:
> It is built but not packaged yet, yes - that is because there
> were/are(?) problems with using the system python 2.3 (which builds) and
> using a internal python 2.2.2 copy (as original OOo does) is bad(tm).

i.e. "Our current system-python patch"  is included in the source
package. Get the debian source package for openoffice.org. Then
(optionally but recommended; you can try with the default python) make
this change in rules:

-  PYTHON=/usr/bin/python
+  PYTHON=/usr/bin/python2.2

Then build it. From debian/tmp copy these files to / (or make a
package):

usr/lib/openoffice/program/libpyuno.so
usr/lib/openoffice/program/python
usr/lib/openoffice/program/python.sh
usr/lib/openoffice/program/pythonloader.py
usr/lib/openoffice/program/pythonloader.uno.so
usr/lib/openoffice/program/pythonloader.unorc
usr/lib/openoffice/program/pyuno.so
usr/lib/openoffice/program/pyunorc
usr/lib/openoffice/program/uno.py
usr/lib/openoffice/program/unohelper.py

To try e.g. pyuno/demo/swriter.py, do
export LD_LIBRARY_PATH=/usr/lib/openoffice/program
export PYTHONPATH=/usr/lib/openoffice/program

then python2.2 path/to/swriter.py

HTH and hope I didn't forget a detail,
        Martin


Reply via email to