Quantcast

Jython 2.2 and Windows 7

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Jython 2.2 and Windows 7

Chris Clark
Jython 2.2 and Windows 7

TL;DR

Jython 2.2 "fails" under Windows 7 (e.g. os.environ lookups), see http://odiexperts.com/jython-os-bug-in-windows-7

Slightly longer.

After reading http://pydev.blogspot.com/2011/12/preparing-for-pydev-230.html I was reminded how much smaller Jython 2.2 is than 2.5.x (when 2.5 came out I jumped at it), so I've used 2.2 on a couple of small projects recently as the deployment size is super tiny :-) This isn't a dig against 2.5, just a cool re-discovery.

However... I just ran a script on a Windows 7 machine and got some odd warnings/errors about "sh" "env" calls, which are obviously Unix'y. It turns out javashell.py has a list of hard coded platforms for working out the "style" of platform. I'm not the first to hit this, http://odiexperts.com/jython-os-bug-in-windows-7 has a note on this. What is the support status of Jython 2.2? Is there value in logging an issue with a patch? We can't use the 2.5 javashell.py as that expects the subprocess module. My change is fairly simple:

In _getOsType, instead of:

    if not foundType:
        foundType = "posix" # default - posix seems to vary most widely

Have:

    if not foundType:
        if 'windows' in os.lower():
            foundType = "nt"
        else:
            foundType = "posix"  # default - posix seems to vary most widely


Chris


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jython 2.2 and Windows 7

fwierzbicki@gmail.com
It is true that 2.2 is no longer maintained -- though if someone
(other than me) where interested enough to learn how to put together a
2.2 release with some simple updates I'd be open to discussing it. I'd
probably even help :)

Another possible avenue to your goals might be to look into how a
minimal Jython 2.5.x could be built. Again I'm willing to give advice
but I'm focused more on 2.6 and beyond.

For my part I'm trying to get a 2.5.3 release together in the new
mercurial world....

-Frank

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jython 2.2 and Windows 7

Roger Marquis
In reply to this post by Chris Clark
fwierzbicki wrote:
> It is true that 2.2 is no longer maintained -- though if someone
> (other than me) where interested enough to learn how to put together a
> 2.2 release with some simple updates I'd be open to discussing it. I'd
> probably even help :)

I personally would love to see 2.2.X maintained and could probably be
coerced into submitting a patch or two if it were.  We still use 2.2 for
the bytecode compiler, which we then obfuscate to protect our (non-OSS)
IP.

Roger Marquis

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jython 2.2 and Windows 7

Chris Clark
On 1/10/2012 11:17 PM, Roger Marquis wrote:

> fwierzbicki wrote:
>> It is true that 2.2 is no longer maintained -- though if someone
>> (other than me) where interested enough to learn how to put together a
>> 2.2 release with some simple updates I'd be open to discussing it. I'd
>> probably even help :)
> I personally would love to see 2.2.X maintained and could probably be
> coerced into submitting a patch or two if it were.  We still use 2.2 for
> the bytecode compiler, which we then obfuscate to protect our (non-OSS)
> IP.
>

Thanks for the offer Frank. I can manage a few (python) patches but I'm
not ready to take on release builds for Jython! I personally use Jython
so I don't have to use Java/ant ;-) It makes deploying scripts/apps to
friends/family very easy.

Are any companies (on this mailing list) relying on Jython (2.2) for
their commercial product? If so are you already performing release
builds? Do you want Windows 7 support?


Chris


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jython 2.2 and Windows 7

Chris Clark
In reply to this post by Roger Marquis
On Monday 2012-04-16 13:49 (-0700), Roger Marquis <[hidden email]> wrote:

> fwierzbicki wrote:
>> It is true that 2.2 is no longer maintained -- though if someone
>> (other than me) where interested enough to learn how to put together a
>> 2.2 release with some simple updates I'd be open to discussing it. I'd
>> probably even help :)
> I personally would love to see 2.2.X maintained and could probably be
> coerced into submitting a patch or two if it were.  We still use 2.2 for
> the bytecode compiler, which we then obfuscate to protect our (non-OSS)
> IP.
>

Kinda of an old thread, there was some interest shown earlier for an
updated 2.2 release. I had an itch recently and this was the result of
the scratching....

https://bitbucket.org/clach04/jython/downloads

I've a few very small patches to the 2.2 branch along with a script for
applying them to a pre-built jython 2.2 jar file. I.e. I'm not building
Jython to produce the new releases, I'm limiting myself to Python only
changes. This adds Windows 7 support to Jython 2.2 (I snuck in some
other things too, see the commit log).

I ended up forking the Jython code so that it was obvious what the
changes are. I'm not sure what the future is for this, it works for what
I need it for :-)

Roger - do you have any changes that you've made to Jython 2.2 that are
worth sharing?

Chris


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Loading...