hierynomus / jython-gradle-plugin

Allows to download Jython/Python modules from pypi
Other
10 stars 8 forks source link

Feature Request: PythonExec #5

Open ysb33r opened 8 years ago

ysb33r commented 8 years ago

It would be nice to have a PythonExec task type similar to the JRubyExec one in the jruby-gradle plugins. This can be used to execute python scripts within the JVM.

hierynomus commented 8 years ago

Good suggestion. A PR is welcome, else I'll need to see when I have some time :)

ysb33r commented 8 years ago

Haha. I'll put in my open-source backlog, but not promising anything (yet).

diogocp commented 8 years ago

@ysb33r I think this plugin does what you want: https://plugins.gradle.org/plugin/com.github.rzabini.gradle-jython

ysb33r commented 7 years ago

@ysb33r I think this plugin does what you want: https://plugins.gradle.org/plugin/com.github.rzabini.gradle-jython

@diogocp I've studied the source code on that one, and I spent quite a bit of time now to go through all of the code of @hierynomus' plugin. Yes, the one that @rzabini wrote can execute scripts, but what I think @hierynomus has done with module dependencies is better in that regard.

To a create extent the two plugins should be merged IMHO. I can see quite a number of use cases:

(There are also the potential caching Jython installs in ~/.gradle and the have the packages kept in Gradle projects via virtualenv. )

Instead of having distributed efforts maybe a concerted effort to have one place so that decent support for Jython in Gradle can be provided.

hierynomus commented 7 years ago

Hi @ysb33r, Sounds like a nice set of use cases. Can you make a set of issues out of these, I think most of them make sense to add in the coming time.

Thanks!