pip-compile with setup.py does not include dependencies with environment markers #1139
Labels
bug
Something is not working
markers
Related to environment markers
setuptools
Related to compiling requirements with `setuptools` build backend
Hi,
During work on one package, I encountered a strange issue. We're building this package for multiple python versions with version dependent requirements (like
importlib-resources
), yet once I use pip-compile with setup.py dependencies with environment markers are entirely ignored. Is this an expected behavior, or is it a bug? In that case, is there and elegant workaround? Thanks.Environment Versions
Python 3.6.9 (default, Jul 2 2019, 20:43:20) [GCC 8.3.0]
pip 20.1 (python 3.6)
pip-compile, version 5.1.2
Steps to replicate
setup.py
requirements.in
Expected result
Environment markers should be used identically from
setup.py
andrequirements.in
.Actual result
Marked dependencies are missing when using
setup.py
.The text was updated successfully, but these errors were encountered: