Message12362

Author jeff.allen
Recipients jeff.allen, stefan.richthofer
Date 2019-03-17.07:30:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552807837.18.0.204150994485.issue2732@roundup.psfhosted.org>
In-reply-to
Content
@Stefan Yes, let's.

I've done this now, with a bit of rationalisation of the strings too. Now the advice reads:

PS jython-jvm9> dist\bin\jython large_module.py
java.lang.RuntimeException: Module or method too large in `large_module.py`.

Please provide a CPython 2.7 bytecode file (.pyc), e.g. run
    python -m py_compile large_module.py

Alternatively, specify a CPython 2.7 command via the python.cpython2 property, e.g.:
    jython -Dpython.cpython2=python
or (e.g. for pip) through the environment variable JYTHON_OPTS:
    export JYTHON_OPTS="-Dpython.cpython2=python"

And this advice works (at least in the development environment):

PS jython-jvm9> dist\bin\jython "-Dpython.cpython2=C:\Python\2.7.15\python.exe" large_module.py
PS jython-jvm9> del large_*.pyc
PS jython-jvm9> $env:JYTHON_OPTS="-Dpython.cpython2=C:\Python\2.7.15\python.exe"
PS jython-jvm9> dist\bin\jython large_module.py

In an installed jython, in response to "pip install mpmath", the failure message comes out fairly prominantly (for tests\test_fp), but this works:
PS issue2726> $env:JYTHON_OPTS="-Dpython.cpython2=C:\Python\2.7.15\python.exe"
PS issue2726> pip install mpmath
...
Successfully installed mpmath-1.1.0
...
History
Date User Action Args
2019-03-17 07:30:37jeff.allensetmessageid: <1552807837.18.0.204150994485.issue2732@roundup.psfhosted.org>
2019-03-17 07:30:37jeff.allensetrecipients: + jeff.allen, stefan.richthofer
2019-03-17 07:30:37jeff.allenlinkissue2732 messages
2019-03-17 07:30:37jeff.allencreate