-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coverage.py cannot be imported in Jython2.7 due to missing multiprocessing library #551
Comments
@offbyone it's been a long time since I've been able to support Jython. The Jython people aren't making this easy... I tried running my tox tests against 2.7.0, and couldn't even install the requirements:
I went to jython.org to get the 2.7.1b1 you mentioned, and I see nothing there. Googling around, the releases are mentioned on Frank's blog and nowhere else? I'm trying to install it now, but one way to get better Jython support would be to encourage Jython to be less unique in their release choreography. |
I've pushed some changes to deal with a missing multiprocessing module. The test suite mostly still doesn't run, so let me know what you find trying to use coverage.py on Jython. |
Also, other tips for Jython would be appreciated. For example, I can't run "coverage --version" under Jython because shebang line in the launcher refers to the jython executable, which is really a Python 2.7 script, or something? |
Original comment by Chris (Bitbucket: offbyone, GitHub: offbyone) I have to admit, the thing I most want is for importing it not to blow up on Jython :) If it works, so much the better -- and I'll probably be motivated to look at that in the near-ish future. But for now, "not exploding" is a good start. Will you release a 4.3.2 to include that? |
Fixed as of 4d9c54230ba7 (bb) |
Originally reported by Chris (Bitbucket: offbyone, GitHub: offbyone)
When running Jython 2.7.1b3 and using multiprocessing by way of pytest-cov:
According to a Jython issue this is a known gap.
There seems to be no way to prevent the attempt to import multiprocessing, as it happens in unconditional imports in
__init__.py
->control.py
->multiproc.py
The text was updated successfully, but these errors were encountered: