JLIST | 14 Aug 23:52

Packaging and deployment

Hi all,

Similar to Python, it seems that Jython applications are not that easy
to deploy. Too many files and directories. I wonder if there is a
solution to package all the directories and .py/class files in a
zip or jar file so that I just need to provide a couple of jar files
for deployment?

Thanks,
Jack

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Leo Soto M. | 22 Aug 15:59

Re: Packaging and deployment

On Thu, Aug 14, 2008 at 5:54 PM, JLIST <jlist9 <at> gmail.com> wrote:
> Hi all,
>
> Similar to Python, it seems that Jython applications are not that easy
> to deploy. Too many files and directories. I wonder if there is a
> solution to package all the directories and .py/class files in a
> zip or jar file so that I just need to provide a couple of jar files
> for deployment?

<http://wiki.python.org/jython/JythonFaq/DistributingJythonScripts>
contains some useful tips.

--

-- 
Leo Soto M.
http://blog.leosoto.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
JLIST | 24 Aug 19:48

Re: Packaging and deployment

Hello Leo,

>> Similar to Python, it seems that Jython applications are not that easy
>> to deploy. Too many files and directories. I wonder if there is a
>> solution to package all the directories and .py/class files in a
>> zip or jar file so that I just need to provide a couple of jar files
>> for deployment?

> <http://wiki.python.org/jython/JythonFaq/DistributingJythonScripts>
> contains some useful tips.

Very helpful. I'll give it a try.

BTW, the page says:

"having your scripts (*.py) inside standalone jython.jar in the /lib
directory"

Not having tried it myself, I wonder if this works? Or do I need to
compile the .py to $py.class then include those $py.class to the jar?

Jack

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Leo Soto M. | 24 Aug 20:29

Re: Packaging and deployment

On Sun, Aug 24, 2008 at 1:48 PM, JLIST <jlist9 <at> gmail.com> wrote:
> Hello Leo,

Hi!

[...]

>> <http://wiki.python.org/jython/JythonFaq/DistributingJythonScripts>
>> contains some useful tips.
>
> Very helpful. I'll give it a try.
>
> BTW, the page says:
>
> "having your scripts (*.py) inside standalone jython.jar in the /lib
> directory"
>
> Not having tried it myself, I wonder if this works? Or do I need to
> compile the .py to $py.class then include those $py.class to the jar?

I'm pretty sure it will work without the $py.class files. I think that
it is the "Lib/" directory though, with a capital 'L'.
--

-- 
Leo Soto M.
http://blog.leosoto.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
(Continue reading)

JLIST | 24 Aug 20:51

Re: Packaging and deployment

Hello Leo,

>> Not having tried it myself, I wonder if this works? Or do I need to
>> compile the .py to $py.class then include those $py.class to the jar?

> I'm pretty sure it will work without the $py.class files. I think that
> it is the "Lib/" directory though, with a capital 'L'.

I see. Thanks. In this case, I suppose Jython will compile them
on the fly in a temp directory?

Jack

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Oti | 4 Sep 17:55

Re: Packaging and deployment

On Sun, Aug 24, 2008 at 8:51 PM, JLIST <jlist9 <at> gmail.com> wrote:
> Hello Leo,
>> I'm pretty sure it will work without the $py.class files. I think that
>> it is the "Lib/" directory though, with a capital 'L'.
>
> I see. Thanks. In this case, I suppose Jython will compile them
> on the fly in a temp directory?
>
> Jack

Hi Jack,

it will compile into memory only, AFAICT.

best wishes,
Oti.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Jack | 5 Sep 16:43

Re: Packaging and deployment

Thanks Oti. That's good to know!

> it will compile into memory only, AFAICT.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane