Title: site-packages isn't set properly in for standalone deployments
Type: Severity: normal
Components: Versions:
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: otmarhumbel Nosy List: crankycoder, nriley, otmarhumbel, pjenvey
Priority: Keywords: patch

Created on 2009-04-20.13:45:04 by crankycoder, last changed 2009-07-31.07:18:50 by nriley.

File name Uploaded Description Edit Remove crankycoder, 2009-04-20.13:45:02 crankycoder, 2009-04-20.15:08:06 added zipfile check on jar files
msg4555 (view) Author: Victor Ng (crankycoder) Date: 2009-04-20.13:45:02
addsitepackages doesn't properly append site-packages if the 'Lib'
directory is embedded within the Jython JAR file.  This is a problem
when jython is deployed as a standalone JAR file. 

The attached patch uses os.path.split and the __file__ attribute of
Lib/ to determine where site-packages is.  I wasn't sure if
os2emx or riscos have the same behaviour so I also split the platform check.
msg4556 (view) Author: Victor Ng (crankycoder) Date: 2009-04-20.15:08:05
Oops.  the previous patch was bad - this patch will inspect JAR files to
look for site-packages.
msg4751 (view) Author: Philip Jenvey (pjenvey) Date: 2009-05-29.01:41:31
I'm not really sure how site-packages is supposed to work with a 
standalone jar. Currently if you create a Lib\site-packages directory 
alongside the standalone jar it gets picked up.
msg4963 (view) Author: Victor Ng (crankycoder) Date: 2009-07-30.14:35:52
I didn't see the docs w.r.t putting Lib\site-packages when I filed this
bug.  please close it.
msg4969 (view) Author: Nicholas Riley (nriley) Date: 2009-07-31.07:18:49
as requested.
Date User Action Args
2009-07-31 07:18:50nrileysetstatus: open -> closed
resolution: invalid
messages: + msg4969
nosy: + nriley
2009-07-30 14:35:53crankycodersetmessages: + msg4963
2009-05-29 01:41:31pjenveysetnosy: + pjenvey
messages: + msg4751
2009-04-25 06:08:53otmarhumbelsetassignee: otmarhumbel
nosy: + otmarhumbel
2009-04-20 15:08:07crankycodersetfiles: +
messages: + msg4556
2009-04-20 13:45:04crankycodercreate