Some changes are required in dev-java/jython:2.5: - /usr/bin/jython-2.5 should set -Dpython.executable=/usr/bin/jython-2.5. - /usr/bin/jython-2.5 should unset EPYTHON to avoid circular execution: python -> jython-2.5 -> java-config-2 -> python - /usr/bin/jython-2.5 should set Dpython.cachedir depending on a variable to avoid regeneration of cache for each package. /usr/bin/jython-2.5 could contain: -Dpython.cachedir=${JYTHON_CACHEDIR-${HOME}/.jythoncachedir} JYTHON_CACHEDIR variable would be set in python_execute_function() in python.eclass. Which directory do you suggest? One of possibilities would be /var/cache/jython-2.5. - Jython should respect PYTHONDONTWRITEBYTECODE variable to avoid sandbox violations. - Optionally some patches from Python 2.5 should be applied.
arfrever, java-config has now been updated to support python 2.6 which probably means that this bug is a bit redundant now. Do you agree that we can't really work on this now? Lets keep this open tho.
This bug is separate from anything in java-config. It's about support for "2.5-jython" Python ABI.
Additional changes: - Scripts installed using Distutils should be installed into /usr/bin instead of /usr/share/jython-2.5/bin. - Jython should respect PYTHONPATH variable.
[21:25] <Arfrever> It requires change of INSTALL_SCHEMES["java"]["scripts"] in distutils/command/install.py. [21:28] <ali_bush> within the python code that jython installs? [21:29] <Arfrever> ali_bush: /usr/share/jython-2.5/Lib/distutils/command/install.py [21:30] <Arfrever> It affects 'jython-2.5 setup.py install' when run with Python packages.
If there are no objections, then I will implement the following changes: - Proper usage of python.eclass - IUSE="+readline +ssl +threads +xml" "ssl", "threads" and "xml" USE flags cannot be disabled and should be forced in package.use.force. "readline" USE flag will automatically enable GNU Readline. - Support for PYTHONDONTWRITEBYTECODE in Distutils (backported from CPython). - Renaming of "jython-2.5" script to "jython2.5", for consistency with CPython. - Deletion of unsetting of EPYTHON. This variable needs to be passed to Jython. The problems need to be fixed in java-config (bug #348306).
(In reply to comment #5) > If there are no objections, then I will implement the following changes: > - Proper usage of python.eclass > - IUSE="+readline +ssl +threads +xml" > "ssl", "threads" and "xml" USE flags cannot be disabled and should be forced > in package.use.force. "readline" USE flag will automatically enable GNU > Readline. > - Support for PYTHONDONTWRITEBYTECODE in Distutils (backported from CPython). > - Renaming of "jython-2.5" script to "jython2.5", for consistency with CPython. > - Deletion of unsetting of EPYTHON. This variable needs to be passed to Jython. > The problems need to be fixed in java-config (bug #348306). > I have no issues with this. Could you send me a patch of the changes you make (so I can get my head around them) Thanks.
(In reply to comment #6) Could you send me a patch of the changes you make > (so I can get my head around them) > > Thanks. > Hi Arfrever. Reviewed patches and they seem fine to me. I'm happy for you to commit them. minor changes don't need further review.
(In reply to comment #5) These changes have been implemented in dev-java/jython-2.5.1-r2. Remaining required changes: - Support for PYTHONDONTWRITEBYTECODE in import system to avoid sandbox violations.
(In reply to comment #8) > Remaining required changes: > - Support for PYTHONDONTWRITEBYTECODE in import system to avoid sandbox > violations. The changelog says this is also fixed, and there's a patch for that. Do we have any other blockers left?
(In reply to comment #9) It's not fixed in dev-java/jython-2.5.1-r2.
(In reply to comment #5) > If there are no objections, then I will implement the following changes: > - Proper usage of python.eclass > - IUSE="+readline +ssl +threads +xml" > "ssl", "threads" and "xml" USE flags cannot be disabled and should be > forced > in package.use.force. "readline" USE flag will automatically enable GNU > Readline. What is this about? Adding use flags which aren't used at all. Can you elaborate? readline arguably does something but the others are noops. > - Support for PYTHONDONTWRITEBYTECODE in Distutils (backported from CPython). No idea what needs to be done here. > - Renaming of "jython-2.5" script to "jython2.5", for consistency with > CPython. > - Deletion of unsetting of EPYTHON. This variable needs to be passed to > Jython. > The problems need to be fixed in java-config (bug #348306).
We have already a bug about the sandbox violation. As this is the last remaining issue on this bug I close this one in favor of the more specific bug 405245. Thanks for your work.