-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
pip-compile support for multiple Python versions #639
Comments
Hi @john-bodley, In short, the dependency resolution results depends on way to many variable to try and fake them to obtain a reliable result. What should be done is to execute a That's the plan so far regarding the multi-environment support. |
Thanks @vphilippon for the explanation. |
Would it be possible to add support for producing
requirements.txt
file which work for multiple Python versions via environment markers. The reason for the request is I'm working on a package which supports Python 2.7 and 3.4+, and we would like to include arequirements.txt
file in the repo to ensure that development/test builds are predictable and deterministic.Environment Versions
$ python -V
: Python 2.7.13$ pip --version
: pip 9.0.1$ pip-compile --version
: pip-compile, version 1.11.0Steps to replicate
In Python 2.7
flower
has a requirement onfutures
, i.e.,echo flower > requirements.in
however this package does not exist for Python 3.4 which means that
pip install -r requirements.txt
will fail in a Python 3.4 environment.Expected result
It would be would be great if you could specify to
pip-compile
which versions therequirements.txt
file should support, i.e.,Note I'm actually creating this from
setup.py
and thus an alternative could be to filter out the packages which aren't explicitly mentioned ininstall_requires
. I'm primarily using the requirements as part oftox
, i.e.,and though I could change this to be,
which is really equivalent to:
the process isn't deterministic (i.e., packages aren't pinned in
setup.py
), which is potentially problematic from a repeatability standpoint.The text was updated successfully, but these errors were encountered: