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

Can't compile certain dependencies (cartopy, pyhdf) #1185

Closed
ingwinlu opened this issue Jul 21, 2020 · 2 comments
Closed

Can't compile certain dependencies (cartopy, pyhdf) #1185

ingwinlu opened this issue Jul 21, 2020 · 2 comments
Labels
awaiting response Awaiting response from a contributor setuptools Related to compiling requirements with `setuptools` build backend support User support

Comments

@ingwinlu
Copy link

It is quite common (and sometimes necessary) for some libraries to depend on other dependencies in their setup.py. Currently pip-compile can't handle those cases as those imports fail.

relevant upstream issues:
SciTools/cartopy#1552

Environment Versions

  1. all (tested on linux)
  2. Python version: python 3.8.3
  3. pip version: pip 20.1.1
  4. pip-tools version: 5.2.1

Steps to replicate

  1. requirements.in with either cartopy or pyhdf in it, other lines optional)
  2. run pip-compile

Expected result

success and requirements.txt is produced

Actual result

pip-compile exception due to exceptions raised in the dependencies package files

@atugushev
Copy link
Member

atugushev commented Jul 22, 2020

Hello @ingwinlu,

Thanks for the issue! AFAIU, it looks like there is no clear solution at the moment. Science libs (e.g., cartopy) require NumPy (and many more) at the setup time, so you have to satisfy those requirements before pip-compile being run.

@atugushev atugushev added setuptools Related to compiling requirements with `setuptools` build backend support User support awaiting response Awaiting response from a contributor labels Jul 26, 2020
@atugushev
Copy link
Member

I'll close this based on the above, but please let us know if it doesn't resolve your issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response Awaiting response from a contributor setuptools Related to compiling requirements with `setuptools` build backend support User support
Projects
None yet
Development

No branches or pull requests

2 participants