File | Date | Author | Commit |
---|---|---|---|
commands | 2012-06-10 |
![]() |
[6f3325] make running tests easier, works in a virtualenv |
javadoc | 2012-05-05 |
![]() |
[80b08f] merge distutils to master |
jep | 2012-06-10 |
![]() |
[433671] version 3.1 |
src | 2012-06-06 |
![]() |
[f5f227] don't override CLASSPATH if provided |
tests | 2012-06-10 |
![]() |
[7dcab6] add a executemany function using jdbc's batch mode |
windows | 2012-05-05 |
![]() |
[80b08f] merge distutils to master |
.gitignore | 2012-06-06 |
![]() |
[d3d3e4] Merge branch 'develop' |
AUTHORS | 2012-05-05 |
![]() |
[80b08f] merge distutils to master |
ChangeLog | 2012-06-10 |
![]() |
[433671] version 3.1 |
LICENSE | 2012-05-05 |
![]() |
[80b08f] merge distutils to master |
MANIFEST.in | 2012-05-05 |
![]() |
[80b08f] merge distutils to master |
README.rst | 2012-06-06 |
![]() |
[d3d3e4] Merge branch 'develop' |
runtests.py | 2012-05-05 |
![]() |
[80b08f] merge distutils to master |
setup.py | 2012-06-06 |
![]() |
[d3d3e4] Merge branch 'develop' |
Jep embeds CPython in Java. It is safe to use in a heavily threaded environment, it is quite fast and its stability is a main feature and goal.
Some benefits of CPython over Java-based languages:
Patches, comments and other help is greatly appreciated. If you need help, post to the SourceForge mailing list or forums. Please include code snippets for the most accurate response.
Jep is licensed zlib/libpng license to avoid linking issues.
Simply run pip install jep.
Building on Mac OS X
OS X requires the Java Developer Package and Xcode from Apple. They are free to download.
Windows
You'll need to use the same compiler that your Python is built with. That's usually MSVC.
Note that Oracle is now building Java with a MSVCRT version that is not easily linked with using tools that I have. Using native modules on Windows has not worked in recent years because the compilers are not widely available. If an OpenJDK build used MinGW, that'd be much more likely to work.
The setup.py script will provide a jep shortcut to make launching Java and Python easier.
$ jep >>> from java.lang import System >>> System.out.println('hello, world') hello, world >>>
Due to some (common) difficulties with Java and C projects that dlopen libraries, you may need to set LD_PRELOAD environment variable. That's in addition to setting LD_LIBRARY_PATH if you've installed libjep into a directory not cached by ld.so.
See the contents of the installed jep script for an example how to do this. The script should have the correct values for your interpreter and virtualenv (if present).
The tests are run from setup.py:
$ python setup.py test
For issues and source control, use github:
There's also a Sourceforge mailing list that is the best way to get support for Jep:
https://sourceforge.net/mail/?group_id=109839
Mike Johnson