Hi, jython guys!
I just started to develop an all new Jython application. It's quite
difference because I will use some jar in Java and some eggs in Python. Then
I found it's a bit complex to manage the PATH.
I world like to use a tool to manage dependencies both for Java and Python,
that is, something like maven+easy_install.
I asked Google but didn't find any result.
So I think it may be a great idea to have such a tool, with which, we can
- create a jython environment just like virtualenv.
- install python packages just like pip
- resolve java dependencies just like leiningen to clojure
- classpath management so we can run a jython script with a clean command
- some standard configuration declares both dependencies in Java and
Do you have any ideas? If this is a right direction and users really need
such a tool, I will start the development in nearly future.
easy_install, pip and virtualenv work just fine under Jython. You can try it
I haven't looked into any technical details, but I suspect that if you want
to write such a tool, it might be easier for you to extend maven to support
jython rather than starting a whole new project by yourself.
Thank you for your advice.
I successfully created my virtual environment with:
virtualenv -p /usr/bin/jython/
And I can download python packages with pip. For python, it just works
great. Then I managed to resolve Java dependencies with ant+ivy, they can
download dependencies automatically.
But when it comes to the final step, I find it's not easy to append jars to
CLASSPATH. Unless you do some dirty job in the `jython` script, you will
have to append every jar to python.path.
I will report this.
2010/12/30 Israel Tsadok <itsadok@...>
> easy_install, pip and virtualenv work just fine under Jython. You can try
> it for yourself.
> I haven't looked into any technical details, but I suspect that if you want
> to write such a tool, it might be easier for you to extend maven to support
> jython rather than starting a whole new project by yourself.