I want to use jython for a school project. The project is to design
and build a mail client and will use Moshe Zadka's PMS framework. I
will need to manually install jython into the project's directory
structure so that no configuration of the lab machines or the prof's
machine is necessary.
When I used Jython on windows, there was a Lib directory in the
directory I installed jython in. This Lib directory contained many
.py files for the standard modules. Now I am using Debian and have
installed the debian package (2.1-alpha3-3). The
/usr/share/jython/Lib directory has very few .py files, and the
startup scripts include the CPython lib directory (/usr/lib/python2.0)
in the python.path system property. This seems a little odd to me as
it will include many modules that depend on C libraries aas available
modules. I checked the jython cvs repository (and the nightly
tarball) and found that the Jython Lib directory matches my debian
system.
For my manual setup, is it correct to simply copy the .py modules that
I need from CPython? Have any of the mail modules been tested with
Jython? (poplib, imaplib, smtplib, rfc822, the MIME modules) For now
I have been copying the CPython modules (symlinking, really) until
importing the PMS package succeeded. I am hoping I don't run into any
serious compatibility conflicts.
TIA,
-D
|