Issue2351
Created on 2015-05-06.23:42:15 by sergei175, last changed 2015-10-08.12:08:24 by darjus.
msg10026 (view) |
Author: Sergei (sergei175) |
Date: 2015-05-06.23:42:14 |
|
Hello,
I'm still trying to understand how I can create Lib.jar from the Lib/ directory that comes with the "Core" installation. I want to make a compact Jython installation without many files in the Lib directory. I also do not want to make changes to my scripts, so I like to use "*" to pick up modules, instead of explicit import of separate classes as in the case of single "jython.jar" file.
Is any procedure I should follow to create Lib.jar from the the Lib/ directory for Jython 2.7?
|
msg10027 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-05-07.01:43:35 |
|
So Clamp (https://github.com/jythontools/clamp) partially addresses this, but doesn't currently offer a facility to exclude files. On #jython on freenode, this has also been discussed with reference to stripping out unnecessary classes from included jar files for a given application - someone may not need Python networking via ssl/socket/select, so no need for BouncyCastle, ICU4J, and Netty. Reduces Jython to about 9 MB...
I suggest you file this issue against Clamp as an RFE - maybe we can figure what could work well.
|
msg10168 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-07-28.16:18:53 |
|
Another possibility is to use Gradle to exclude classes:
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:excludes
Note that we plan to move Jython to using Gradle, instead of Ant.
|
|
Date |
User |
Action |
Args |
2015-10-08 12:08:24 | darjus | set | status: open -> closed resolution: postponed |
2015-07-28 16:18:53 | zyasoft | set | messages:
+ msg10168 |
2015-05-07 01:43:36 | zyasoft | set | nosy:
+ zyasoft messages:
+ msg10027 |
2015-05-06 23:42:15 | sergei175 | create | |
|