> Since jython basically requires python to install and run, and I only
> can get python 2.3 on Linux once it's released, I compile jython with a
> command like:
> ant -Dpython.lib=/usr/lib/python2.3 -DPyXmlHome=/usr/lib/python2.3 copy-dist
> ant -Dpython.home=/usr/bin -Dht2html.dir=/usr/share/ht2html doc
> ant javadoc
> The problem is, of course, that jython hardly supports 2.2, let
> alone 2.3. On startup it fails to load UserDict.py complaining
> about the `yield' keyword, IIRC.
I address this problem, i.e. the need for cpython libraries when running
jython, by having cpython 2.1 installed on my system. As you noted,
using cpython 2.2 and 2.3 presents problems, because the language has
changed. However, the cpython 2.1 library is compatible with jython,
i.e. no "yield"s, etc.
Very occasionally, you come across a bug in a cpython 2.1 module that
has been fixed only in a later release, and not backported. In these
cases, it's not hard to use the cpython CVS to find out what changes
have been made to the module, and either backport them yourself, or
simply copy the cpython 2.2/2.3 module directly across (if no >2.1
language features are used).
> Another issue may of course be PyXML which is now at 0.8.3. There's
> no telling if a given release will work with jython either.
PyXML needs a jython champion, that's for sure. I wish I had the time.
If you have specific problems, either mention them here, or record a bug
> So basically I am trying to manage python and jython on the same
> system and having difficulties.
Are you unable to install cpython 2.1 on your system?