#jython IRC Log (v0.9)

Index

IRC Log for 2011-01-08

Timestamps are in GMT/BST.

[0:02] * yacc (~andreas@84.113.164.165) has joined #jython
[0:59] * lopex (lopex@89-76-44-27.dynamic.chello.pl) Quit ()
[1:23] * enebo (~enebo@184-97-205-152.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[1:23] * enebo (~enebo@184-97-205-152.mpls.qwest.net) has joined #jython
[1:48] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[2:15] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 260 seconds)
[2:17] * Laureano (bef565a3@gateway/web/freenode/ip.190.245.101.163) has joined #jython
[2:18] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[2:24] <Laureano> I would like to avoid appending to the sys.path object the path to a JAR file which contains a Java library that I'm using from Jython. The package has been processed by sys-package-mgr and I can see it on the cachedir, but I can't import the module without appending the JAR file. Is there a way to avoid this?
[2:28] * enebo (~enebo@184-97-205-152.mpls.qwest.net) Quit (Quit: enebo)
[2:44] <agronholm> you can add it to the class path when launching jython
[2:44] <agronholm> how else would the class loader find the jar?
[2:57] * Laureano (bef565a3@gateway/web/freenode/ip.190.245.101.163) Quit (Ping timeout: 265 seconds)
[3:02] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[3:07] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 240 seconds)
[3:27] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:09] * jimbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[7:01] * intuition (~vaine0@c-24-17-60-170.hsd1.wa.comcast.net) has joined #jython
[7:02] <intuition> Do you guys know if there is a plugin or another solution that provides Netbeans ide integration with Jython (being used as a scripting lanugage) for debugging?
[7:02] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[7:26] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[9:18] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[9:40] * intuition (~vaine0@c-24-17-60-170.hsd1.wa.comcast.net) Quit ()
[9:51] * thobe1 (~Adium@c83-249-252-226.bredband.comhem.se) Quit (Ping timeout: 264 seconds)
[9:56] * thobe (~Adium@83.249.252.226) has joined #jython
[10:49] * thobe1 (~Adium@c83-249-252-226.bredband.comhem.se) has joined #jython
[10:51] * thobe (~Adium@83.249.252.226) Quit (Read error: Operation timed out)
[11:41] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: leaving)
[11:58] * lopex (lopex@89-76-44-27.dynamic.chello.pl) has joined #jython
[13:24] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[13:47] * agronholm (~demigod@nblzone-211-37.nblnetworks.fi) Quit (Ping timeout: 265 seconds)
[14:47] * enebo (~enebo@184-97-205-152.mpls.qwest.net) has joined #jython
[15:25] * agronholm (~demigod@nblzone-211-37.nblnetworks.fi) has joined #jython
[15:45] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Read error: Connection reset by peer)
[15:45] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[16:03] * enebo_ (~enebo@184-97-205-152.mpls.qwest.net) has joined #jython
[16:03] * enebo (~enebo@184-97-205-152.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[16:03] * enebo_ is now known as enebo
[16:59] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[17:03] * enebo (~enebo@184-97-205-152.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[17:03] * enebo (~enebo@184-97-205-152.mpls.qwest.net) has joined #jython
[17:17] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[18:06] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[18:49] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 264 seconds)
[18:56] * tnelson (trent@coapp/developer/tnelson) Quit (Read error: Connection reset by peer)
[18:57] * tnelson (trent@wind.teleri.net) has joined #jython
[19:03] * enebo (~enebo@184-97-205-152.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[19:03] * enebo (~enebo@184-97-205-152.mpls.qwest.net) has joined #jython
[19:03] * headius (~headius@216.160.3.79) has joined #jython
[19:20] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[19:26] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[19:54] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[20:14] * headius (~headius@184-97-205-152.mpls.qwest.net) has joined #jython
[20:38] * Smok (~smok@host-81-190-97-153.gdynia.mm.pl) has joined #jython
[20:39] <Smok> hello everybody
[20:39] <Smok> I have a question
[20:41] <Smok> I'm new at Jython and I'm having trouble understanding packaging apps in Jython. I'm using version 2.5.1. I have read Jython Wiki space about the problem, I have done some googling but still I can't find the solution.
[20:41] <Smok> The problem is that I can't find jythonc - a compiler for Jython
[20:41] <agronholm> Smok: anything more specific than that?
[20:42] <agronholm> oh
[20:42] <agronholm> jythonc is gone
[20:42] <agronholm> for good
[20:42] <agronholm> what do you need to do?
[20:42] <Smok> which (according to Wiki) should allow me to generate executable JAR file
[20:42] <agronholm> jythonc doesn't generate any jar files
[20:42] <agronholm> and how are you deploying your app anyway
[20:44] <agronholm> Smok: ?
[20:44] <Smok> for now I'm using Eclipse with PyDev plugin to develop my scripts and unit tests for them
[20:44] <agronholm> but how will you deploy your application?
[20:45] <Smok> deploy? you mean like web app? If that's a case, then I will not
[20:45] <agronholm> applet? java web start? java application server?
[20:45] <Smok> I won't to create an executable JAR
[20:45] <agronholm> you still need the jython runtime
[20:46] <agronholm> I guess you _could_ package them in a single jar
[20:46] <Smok> which could be launched from command line
[20:46] <Smok> that's what I want to do :)
[20:46] <Smok> could you please help me out?
[20:46] <agronholm> is it an option for you to install the jython runtime so it won't have to be packaged in the application jar?
[20:47] <Smok> If it's necessary
[20:47] <agronholm> it is the preferred option
[20:48] <Smok> and the only thing which user of my app will have to do is just install Jython and add it's interpreter to syspath?
[20:48] <agronholm> to PATH you mean? (not python's sys.path)
[20:48] <Smok> yes, PATH
[20:49] <Smok> what should I do then?
[20:49] <agronholm> how would you prefer to have your app launched? java -jar yourapp.jar?
[20:50] <Smok> It would be fine
[20:51] <Smok> because user of this app is Java developer
[20:52] <agronholm> I don't think there's any really neat way to do this while packaging as a jar
[20:52] <agronholm> you could set the Main-Class attribute in the app's META-INF/MANIFEST.MF to the jython interpreter
[20:53] <agronholm> but I'm not aware of any method to supply arguments as well, except manually
[20:53] <agronholm> so you'd have to add a stub java class
[20:53] <agronholm> and you'd have to manually add jython.jar to CLASSPATH
[20:53] <agronholm> not the approach I would recommend
[20:54] <Smok> and what approach would you recommend?
[20:54] <agronholm> forgetting about jars entirely
[20:54] <Smok> and what instead?
[20:54] <agronholm> make it a python app rather than a java app
[20:54] <agronholm> package it as a python app so it will add a command line script to the PATH on install
[20:55] <agronholm> then that other guy can just invoke your app with a simple command
[20:55] <Smok> could you please give some reference? I have never developed Python app
[20:56] <agronholm> http://guide.python-distribute.org/
[20:56] <agronholm> the key is creating a setup.py file
[20:57] <agronholm> after you have a working setup.py, you can package your app using "jython setup.py sdist"
[21:00] <Smok> how about this approach http://www.jython.org/jythonbook/en/1.0/SimpleWebApps.html#distributing-via-standalone-jar ?
[21:01] <agronholm> so is this a web app after all?
[21:01] <agronholm> how were you planning to execute an app packaged like that?
[21:01] <Smok> no, it's not
[21:01] <Smok> but would that work for desktop app either?
[21:01] <agronholm> yes it would, if it's deployed via java web start
[21:02] <agronholm> which this mentions right in the first sentence
[21:04] * MarderIII (~marderii@enneman.demon.nl) Quit (Ping timeout: 255 seconds)
[21:13] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[21:33] * enebo_ (~enebo@184-97-205-152.mpls.qwest.net) has joined #jython
[21:33] * enebo (~enebo@184-97-205-152.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[21:51] <Smok> agronholm, You said, that Jythonc was abandoned - why?
[21:52] <agronholm> because it can't fully support language features added since python 2.2
[21:52] <agronholm> such as generators
[21:53] <Smok> that's why sites where Jythonc was described were based on Jython 2.2
[21:53] <Smok> have you heard about OneJar project?
[21:53] <agronholm> I don't think so
[21:54] <Smok> It's an app, which allows users to pack apps in single JAR, even for Jython
[21:55] <Smok> I'm trying to do that now
[21:57] <agronholm> hm I may have heard of it after all
[21:57] <Smok> I read about Python packaging, but with this option I won't be able to profile the app with VisualVM
[21:57] <agronholm> yeah well that will be excruciating anyway
[21:57] <agronholm> profiling a python app with a java profiler
[21:58] <Smok> yes, exactly :)
[22:00] <Smok> I know that it sounds weird, but I started learning Jython for my Eng. work at university
[22:01] <Smok> It worked!
[22:01] <Smok> now I need to adopt it to my project :)
[22:16] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: leaving)
[23:23] * enebo_ (~enebo@184-97-205-152.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[23:23] * enebo (~enebo@184-97-205-152.mpls.qwest.net) has joined #jython

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).