-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
Unable to build/test a python 3.6.0 project using jsonschema lib due to pants bringing in a 2.7 dependency #4490
Comments
fwiw, pex seems to handle the extras resolve just fine on 2.7 vs 3.6: 2.7:
3.6:
I think this points to some form of an interpreter mismatch during resolve. |
We are having to use an old json schema library due to this which is no longer maintained. Any chance this could get some love? |
Hit the same issue with |
same here with |
I ended up working around this by:
It works by the silly fact that there's something for it to download, and then it just places a silly file called So if you get stuck on this then there's always this horrid hack until one of us have time to look into fixing it all proper like. :) |
Should be fixed by #5906 |
Thanks @shuoli84! |
Symptom: cannot use the jsonschema lib in a python project targeting 3.6.0. pants tries to bring in functools32 which raises an error on python versions greater than 2.7.
The reason it's bringing in this dependency appears to be this line in jsonschema's setup.py: https://github.com/Julian/jsonschema/blob/master/setup.py#L25
This dependency should not be brought in since the project is targeting 3.6.0.
I created a simple repro for this here: pants_bug.zip
To repro:
./pants test .:
Output:
The text was updated successfully, but these errors were encountered: