Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to build/test a python 3.6.0 project using jsonschema lib due to pants bringing in a 2.7 dependency #4490
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
fwiw, pex seems to handle the extras resolve just fine on 2.7 vs 3.6:
I think this points to some form of an interpreter mismatch during resolve.
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. :)