Title: Python modules defined with an that are precompiled in a jar do not import.
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.2
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: colinhevans, fwierzbicki
Priority: low Keywords:

Created on 2008-07-31.17:42:00 by colinhevans, last changed 2013-02-26.17:15:53 by fwierzbicki.

msg3375 (view) Author: Colin Evans (colinhevans) Date: 2008-07-31.17:48:47
Here's the setup:

test.jar contents:


>>> import ttt
<single-top>: ttt= 
*sys-package-mgr*: reading cache, '/Users/colin/dev/test.jar'
import: trying source ./ttt
import: trying precompiled with no source./ttt$py.class
import: trying source entry: ttt/ from jar/zip file
import: trying precompiled entry ttt/__init__$py.class from jar/zip file
>>> dir(ttt)
<single-top>: ttt dir 
['__doc__', '__loader__', '__name__', '__path__']

Note - no error message is returned, but the contents of are
not actually imported.  If I omit the __init__$py.class file from the
jar file and only include the source, the module imports correctly.
Date User Action Args
2013-02-26 17:15:53fwierzbickisetnosy: + fwierzbicki
versions: + Jython 2.2, - 2.2.1rc1
2008-12-17 19:46:32fwierzbickisetpriority: low
2008-07-31 17:48:47colinhevanssetmessages: + msg3375
2008-07-31 17:42:00colinhevanscreate