-
Notifications
You must be signed in to change notification settings - Fork 4
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
Difficult to specify earth2grid as a dependency in other projects #23
Comments
--no-build-isolation is used to avoid reinstalling the whole pytorch stack just to build the earth2grid wheel, which is quite time consuming and error prone when pytorch is already installed and linked against the correct CUDA installation. I think you can put earth2grid in your requirements.txt/setup.py and then do
Installation
Would this work for you? Unfortunately, pip doesn't work well for compiled packages, and it would take a fair amount of effort for us to distribute our own wheels compiled against the various CUDA versions. I hope earth2grid is worth some TLC. I've certainly found it easier to install than e.g. cartopy. |
Thanks for quick reply.
Got it. I believed we tried without this flag and it failed, at least in some settings. It didn't just take longer.
Okay, potentially we can have earth2grid as an extra dep so that it's not necessary to use the
cartopy has improved! At least we've found the pip install possible since v.022 works well. |
Sounds good. Ultimately, we could explore JIT or some other techniques to make the library easy to use. We've even had good luck with |
@akshaysubr do you have any thoughts? |
here's a link for JIT: https://pytorch.org/tutorials/advanced/cpp_extension.html#jit-compiling-extensions |
Hitting an issue separate from the 'no build dependencies'. Made a PR: #24 |
Because of the requirement to use
--no-build-isolation
when installing earth2grid, it is difficult to specify it as a requirement in other python packages. Do you have any suggestions of how to get around this issue / install without that flag?earth2grid/README.md
Line 24 in a5d5a3f
The text was updated successfully, but these errors were encountered: