3

I've read the answers to the related questions about managing used libraries in a Jython application:

How can I install various Python libraries in Jython?

Best method for managing Jython packages

But I don't want to put those libraries in a location on my system. I would like to distribute them with my Jython webapp. It seems I once managed to install a library to my webapp's WEB-INF/lib/Lib/site-packages/ directory, but I can't figure out how to do it again.

Community
  • 1
  • 1
user323094
  • 3,643
  • 4
  • 21
  • 30

1 Answers1

0

For regular Jython apps I've had success using OneJar to package all my dependencies. I haven't tried it, but it looks like you should be able to package that unified jar into a war package. It's convoluted, but it strikes me that solutions to these practical Jython questions often are. As an alternative it might suffice to stick the jython jar into the /web/lib folder in your jar and then bootstrap your jython code with a java snippet. Good luck, I'm interested to hear how you resolve this.

sarwar
  • 2,835
  • 1
  • 26
  • 30
  • It does sound complicated, I'll have to study up whether this does what I need. And I didn't understand the alternative part. I shelved the project meanwhile, so it might be a while before I get back to it again. Thanks for now. – user323094 Dec 17 '12 at 12:23