Issue 11753 - Adding python scripting language to the external project
Summary: Adding python scripting language to the external project
Status: CLOSED DUPLICATE of issue 14846
Alias: None
Product: utilities
Classification: Unclassified
Component: code (show other issues)
Version: 643C
Hardware: PC All
: P4 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: joergbudi
QA Contact: Unknown
URL:
Keywords:
Depends on:
Blocks: 12602
  Show dependency tree
 
Reported: 2003-02-23 01:15 UTC by joergbudi
Modified: 2003-07-31 09:24 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The python module as it should be checked in (3.42 KB, application/octet-stream)
2003-03-23 12:20 UTC, joergbudi
no flags Details
module to build python itself, now with configure-ppc patch (3.95 KB, application/octet-stream)
2003-04-06 21:10 UTC, joergbudi
no flags Details
pyuno added to the scp project (new directory with new files) (3.55 KB, application/octet-stream)
2003-04-06 21:12 UTC, joergbudi
no flags Details
patches to existing files in the scp project for adding pyuno (2.69 KB, patch)
2003-04-06 21:13 UTC, joergbudi
no flags Details | Diff
patches to pkgchk to allow python components to be deployed with uno packages (2.85 KB, patch)
2003-04-06 21:15 UTC, joergbudi
no flags Details | Diff
A samplepackage containing a java,native and python component, needed to check the pyuno installation check. (84.89 KB, application/octet-stream)
2003-04-06 21:16 UTC, joergbudi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description joergbudi 2003-02-23 01:15:36 UTC
Hi,

I want to add a python-uno bridge module to the CVS repository within the
UDK-project. This project needs the 3rdparty code python as a prerequisite. The
makefiles to build the python core should be checked into the external project. 

I have filled out the form for 3rd party code (see
http://external.openoffice.org), however I am unable to send it to
so-external@sun.com, I would like to ask mh to forward it to this location.

Product Name                        : Python
Product Version                     : 2.2.2
Vendor or Owner Name                : Python Software Foundation
Vendor or Owner Contact             : psf@python.org
OpenOffice.org Contact              : jbu@openoffice.org
Date of First Use / date of License : 2001
URL for Product Information         : http://www.python.org
URL for License                     : http://www.python.org/2.2.2/license.html
Purpose                             :
  I want to introduce the scripting language python into the OOo build
  environment, because it is needed as a prerequisite for the pyuno module
  in the UDK project.
Type of Encryption                  : none
Binary or Source Code               : source

I have discussed with kso and st, that in the first run, only the makefiles for
building python will be checked in. As the two projects shall not be built by
default, the source tarball is not checked in for now, but may follow later.

For further information about pyuno, please see 

http://www.budischewski.com/pyuno/python-bridge.html

and the dev@udk.openoffice.org mailing list from the end of january up to now.

I will attach the python project to this issue within the next days.
Comment 1 joergbudi 2003-03-05 21:29:56 UTC
Hi Martin,

do we really need the agreement of Sun Legal for python, even when we
don't check in the tar-ball, just additonal makefiles into
external/python ?

If yes, do you have a rough estimation, how long this will take (Some
people are interested to get to know, when it is available in CVS
repository).
Comment 2 joergbudi 2003-03-11 21:23:53 UTC
Hi Martin, have you seen my last comment (2003-03-05) ? Any remarks ?
Comment 3 joergbudi 2003-03-23 12:20:01 UTC
Created attachment 5209 [details]
The python module as it should be checked in
Comment 4 Martin Hollmichel 2003-03-24 17:38:03 UTC
hi joerg, kai,

do we plan to integrate this bridge into the normal OOo build ? In
this case we would have another prerequite for building OOo.
If we only want to build this additionaly (with add. download of
external phython) I see no reason why not to commit
makefile/d.lst/build.lst into udk project (as long as they should be
dual liecensed).
Comment 5 joergbudi 2003-03-24 22:06:17 UTC
If the udk project owners agree, it may at some time in future become
part of the official build, currently it is not.

As this separation is IMHO sensible and we have this separation
already, why shouldn't we do it the correct way from the beginning ?  
Comment 6 joergbudi 2003-03-27 20:53:02 UTC
Hi again, 

thinking about it a second time, I definitly want to build python
within a module different from pyuno, because the headers and shared
libs should be delivered to the global environment. (Otherwise it
becomes difficult to compile/link pyuno components). 
So if you don't want to have python module in the external project, I
would vote for a udk/python module. Kai, maybe you can find an
agreement with Martin ?
Comment 7 Martin Hollmichel 2003-03-31 13:45:51 UTC
I talked with Kai about this plan:

* make pyuno available for a non default optional module in the OOo
installation set.
 - document phython as a build requirement
 - build and deliver pyuno on regular basis
 - enhance scp to include pyuno in OOo installation set.

i start preparing this on the ooo20030412 cws.

 - if build is available latest with beta2 we have to discuss, if we
really need to include Runtime into installset or not. if not, we do
not have the requirement for external/phython. nonetheless we also can
start getting approval for external/phython now.
Comment 8 joergbudi 2003-03-31 19:14:15 UTC
Hi,

this sounds to be a promising start for a full python installation.
At least for gcc builds, external/python is inevitable, as the python
executable itself gets dynamically linked to the system's libstdc++.so.*
. As pyuno needs the core uno c++ libraries within the python process,
we definitly need a python executable linked with the office
libstdc++.so. 

I will prepare such an installation set (with python runtime)  with
patches for scp. I hope to have this ready next week.

Which files do I have to create patches for in order to change 
 - document phython as a build requirement
 - build and deliver pyuno on regular basis

?

When I have question about scp integration, I will put them to
dev@installation.openoffice.org. 

Thx, Joerg
Comment 9 joergbudi 2003-04-06 21:10:13 UTC
Created attachment 5494 [details]
module to build python itself, now with configure-ppc patch
Comment 10 joergbudi 2003-04-06 21:12:17 UTC
Created attachment 5495 [details]
pyuno added to the scp project (new directory with new files)
Comment 11 joergbudi 2003-04-06 21:13:46 UTC
Created attachment 5496 [details]
patches to existing files in the scp project for adding pyuno
Comment 12 joergbudi 2003-04-06 21:15:04 UTC
Created attachment 5497 [details]
patches to pkgchk to allow python components to be deployed with uno packages
Comment 13 joergbudi 2003-04-06 21:16:39 UTC
Created attachment 5498 [details]
A samplepackage containing a java,native and python component, needed to check the pyuno installation check.
Comment 14 joergbudi 2003-04-06 21:19:07 UTC
Hi Martin,

please follow this steps to create an installation set with pyuno

* add the following to lines to the environment script:
(where can I add this in the configure process ?)

unx:

setenv PYTHONPATH
.:"$SOLARVER"/"$UPD"/"$INPATH"/lib/python:"$SOLARVER"/"$UPD"/"$INPATH"/lib/python:"$SOLARVER"/"$UPD"/"$INPATH"/lib/python/lib-dynload
setenv PYTHONHOME "$SOLARVER"/"$UPD"/"$INPATH"

win:
set
PYTHONPATH=.;%SOLARVER%\%UPD%\%INPATH%\lib\python;%SOLARVER%\%UPD%\%INPATH%\lib\python:%SOLARVER%\%UPD%\%INPATH%\lib\python\lib-dynload
set PYTHONHOME=%SOLARVER%\%UPD%\%INPATH%


* use the python module from latest attachment of python.zip in this
issue.
  Download http://www.python.org/ftp/python/2.2.2/Python-2.2.2.tgz and
copy it as Python-2.2.2.tar.gz into the download directory of the
python module.
* checkout pyuno toplevel (a must !)
* apply the scp.patch file attached to this issue
  extract scp.zip from within the scp module. It will inflate the
  following files
  source/python/makefile.mk
  source/python/python.scp
  source/python/unxbasic_python.scp
  source/python/winbasic_python.scp
  
* apply the pkgchk_packages.cxx.patch to
  desktop/source/pkgchk/pkgchk_packages.cxx
  file
  ( you should get the approval for this patch from DBO and KSO,
  I will inform them separately )

* Build the projects (python and pyuno should be build
  one after another, rest can be built in parallel).

* After building an installation set, you should have
  a PyUNO bridge package
  in the optional components tree in the setup package
  selection.

* you can check your installation by doing the following:
  (see samplepackage.zip attachment)

  cd <office-install>/program
  ./pkgchk samplepackage.zip
  ./soffice "-accept=socket,host=localhost,port=2002;urp;"
  ./python <path-to-projects>/OO1.1Beta/pyuno/demo/swritercompclient.py

  You shouldn't get any error messages.

* let me know, what is to be done next.

Thx, Joerg

Comment 15 Martin Hollmichel 2003-04-11 16:25:31 UTC
waiting approval for desktop/source/pkgchk/pkgchk_packages.cxx, reset
prio.
Comment 16 joergbudi 2003-04-23 20:57:59 UTC
jbu->mh: When you expect me to do something more for this issue,
please speeak up, I currently assume that I delivered everything
needed from my side.
Comment 17 joergbudi 2003-05-25 01:51:16 UTC
I have created a followup issue #i14846# to stop confusion on too 
many already outdated patches.
Comment 18 joergbudi 2003-05-25 01:53:14 UTC
I have created a followup issue #i14846# to stop confusion on too 
many already outdated patches.

*** This issue has been marked as a duplicate of 14846 ***
Comment 19 joergbudi 2003-07-31 09:24:17 UTC
closing fixed issues for 1.1. release.