Skip to content
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 suffix numpy with +mkl #1471

Closed
ingolfured opened this issue Aug 23, 2021 · 3 comments
Closed

pip-compile suffix numpy with +mkl #1471

ingolfured opened this issue Aug 23, 2021 · 3 comments

Comments

@ingolfured
Copy link

I currently have a setup.cfg with numpy==1.19.5 as dependency. When I rebuild a requirements.txt using pip-compile on Windows 10, it adds a line numpy==1.19.5+mkl which later on can't be found by my Linux Jenkins instance. How can I tell pip-compile to stop adding +mkl as a suffix to the version?

Thanks
Ingo

Environment Versions

  1. Windows 10 (when run pip-compile) but Linux (when run pip-sync)
  2. Python version: Python 3.6
  3. pip version: 21.2.2
  4. pip-tools version: 6.2.0

Steps to replicate

  1. Have a setup.cfg with a
[options]
install_requires =
    numpy==1.19.5
  1. run pip-compile
  2. Have a look at your requirements.txt for a line numpy==1.19.5+mkl `

Expected result

It should be numpy==1.19.5

Actual result

numpy==1.19.5+mkl

@1oglop1
Copy link

1oglop1 commented Aug 24, 2021

I'd say you do not want to run pip-compile on your windows machine. Just make pip-compile as part of your CI job instead

@AndydeCleyre
Copy link
Contributor

Yeah, the current intended behavior is that pip-compile is run on the target environment.

See #585 (comment), and we have at least these two open issues regarding multi-environment ideas:

So I think @1oglop1 has the immediate solution to your problem, and if that's not satisfactory check if the linked issues fit.

@AndydeCleyre
Copy link
Contributor

@ingolfured

It's been about a month, and AFAICT this is working as intended, so I'm closing the issue, but please write back if there's more to add here. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants