From: Chris C. <Chr...@ac...> - 2012-01-09 17:26:15
|
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 |
From: <fwi...@gm...> - 2012-01-11 03:21:46
|
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 |