Message11835
I think this works in 2.7.2a1, but have I misunderstood (anyone)?
With the set-up, where each file essentially just prints __file__:
PS iss1090> tree /f /a
Folder PATH listing for volume SYSTEM
Volume serial number is 6076-CBCE
C:.
| jartest.py
|
\---jar-source
| tell.py
| tell2.py
|
\---sub
tell3.py
__init__.py
and the attached program, I can create a JAR and access it as I think is intended:
PS iss1090> jython jartest.py
('jar-source', ['sub'], ['tell.py', 'tell2.py'])
('jar-source\\sub', [], ['tell3.py', '__init__.py'])
compiling jar-source -> mylib :
compiling jar-source\sub -> mylib :
File Name Modified Size
mylib/tell$py.class 2018-03-21 20:31:58 2455
mylib/tell2$py.class 2018-03-21 20:31:58 2458
mylib/sub/__init__$py.class 2018-03-21 20:31:58 2461
mylib/sub/tell3$py.class 2018-03-21 20:31:58 2470
Executing module from 'C:\\Users...\\iss1090\\jartest.jar\\mylib\\tell$py.class'
Executing module from 'C:\\Users...\\iss1090\\jartest.jar\\mylib\\tell2$py.class'
Executing module from 'C:\\Users...\\iss1090\\jartest.jar\\mylib\\sub\\__init__$py.class'
Executing module from 'C:\\Users...\\iss1090\\jartest.jar\\mylib\\sub\\tell3$py.class'
This is identical to CPython apart from the full pathname and s/.pyc/$py.class/*. The JAR made has the structure:
PS iss1090> jar -tf jartest.jar
mylib/tell$py.class
mylib/tell2$py.class
mylib/sub/__init__$py.class
mylib/sub/tell3$py.class
So this looks good to me in 2.7, and I think we will not fix any earlier version. Close belatedly? |
|
Date |
User |
Action |
Args |
2018-03-21 21:06:04 | jeff.allen | set | messageid: <1521666364.5.0.467229070634.issue1090@psf.upfronthosting.co.za> |
2018-03-21 21:06:04 | jeff.allen | set | recipients:
+ jeff.allen, fwierzbicki, colinhevans |
2018-03-21 21:06:04 | jeff.allen | link | issue1090 messages |
2018-03-21 21:06:03 | jeff.allen | create | |
|