Re: jnr-ffi and jnr-posix
Jeff Allen <[email protected]>
| Newsgroups | gmane.comp.lang.jython.devel |
|---|---|
| Message-ID | <[email protected]> |
I have fixed this, which turns out to be a bug in jnr/jnr-ffi, and
submitted a pull request to that project. If I revert to the Jython
repository state where this problem first manifested (Jim's update to
the JARs), then swap my snapshot build for the jnr-ffi-1.0.10.jar, it
runs like this:
>dist\bin\jython -S
*sys-package-mgr*: processing new jar,
'D:\hg\jython-int\dist\javalib\jnr-ffi-2.0.0-SNAPSHOT.jar'
Jython 2.7b2+ (default:01460e803ef3, Jul 24 2014, 06:32:04)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_60
>>> import os
>>> os.stat("NEWS")
(33188, 0L, 3L, 1, 0, 0, 72242L, 1405973389, 1405973389, 1394662212)
where previously we had "NotImplementedError: stat".
I await some feedback on my fix from jnr-ffi. Ideally there would be a
release (1.0.11 maybe) containing this. I think a non-standard snapshot
build is undesirable in a production release of Jython, although it
remains a possibility.
Jeff
Jeff Allen
On 13/07/2014 18:42, Jeff Allen wrote:
> I'm just checking in to say that I'm working on the above, as Jython
> has a problem with jnr-posix on Windows. This is behind the reversing
> of Jim's otherwise desirable update to the JNR and JFFI jars. I raised
> this issue:
> https://github.com/jnr/jnr-posix/issues/25
> but I don't see anyone other than me rushing to fix it.
>
> So I'm working *for* Jython, just not *on* Jython. The tool-chain
> brings some interesting new challenges. I can build it on Linux and
> Windows (although on Windows many tests fail): Eclipse is unhappy on
> both in ways I don't understand.
>
> Jeff
>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Jython-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-dev