Pipenv tries to install conditional dependency that it should not
See original GitHub issueHi!
I think pipenv might be trying to install a package from extras_require
that has a conditional dependency looking like this ":python_version=='2.7'": ["functools32"],
when running python 3 you can see full setup.py here
Result is that it is crashing during the locking
pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /var/folders/sf/3jbs_z291zj5sh_mc967y1_r0000gn/T/tmpJmGecKbuild/functools32/
➞ pipenv --version
pipenv, version 7.9.2
minimal reproducible commands
mkdir testenv
cd testenv
pipenv --three
pipenv install jsonschema
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Pipenv: dependencies of platform specific packages are ...
I tested it by changing the restriction to 'Linux' and trying to install the dependencies into a new environment without the Pipfile.
Read more >Advanced Usage of Pipenv - Read the Docs
Dependencies of wheels provided in a Pipfile will not be captured by $ pipenv lock . There are some known issues with using...
Read more >Frequently Encountered Pipenv Problems
☤ Pipenv does not respect dependencies in setup.py Pipfile and setup.py serve different purposes, and should not consider each other by default. See...
Read more >How to PIP Install Requests Python Package - ActiveState
Pip Install Requests as a Dependency. Pip will allow you to declare a specific Requests version as a dependency in a requirements.txt file, ......
Read more >Conditional Python Dependencies - Hynek Schlawack
Since the inception of wheels that install Python packages without executing arbitrary code, we need a static way to encode conditional ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think it was installing pipenv via
pip3
that fixed this for me.@alercunha Make sure you have
pipenv
8.2.7 installed, and be sure to clear the cache withpipenv lock --clear
. The cache could have invalid dependencies left, caused from a bug that was in 8.2.6.