How to have a requirement without dependencies #1951
Replies: 2 comments
-
(FYI, MetPy dev here) There's not really a way to strip down the package down from what's specified in its recipe. We'd have to do (like has been done elsewhere) and make a metpy-base (with only the bare minimum) and metpy--though at this point it's pretty much just Cartopy and Shapely as optional. Can you share the environment and OS that's causing problems? I'd like to see if I can figure out what's causing the problem in environment resolution. |
Beta Was this translation helpful? Give feedback.
-
Thanks @dopplershift. I attach an environment that was causing problems for a colleague on Ubuntu 32.0, Python 3.11: I believe cartopy is the only dep that causes us real issues in conda. Within our group, we've largely shifted to mamba and it's problem free with mamba, so it's mostly external users that report having problems installing and giving up often. A stripped down metpy-base would solve the problem. We use geoviews-cores instead of geoviews for similar reasons. FYI, the package is using the metpy CF-parser which is super-useful for helping the package figure out what's what when automatically generating plots. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to set up dependencies in the meta.yml file, so that only the package code is installed and none of its dependencies?
I develop nctoolkit and I want to be able to set metpy as a dependency, but I want a vanilla metpy plus the minimum deps of metpy for nctoolkit to work. Installing all of its dependencies is currently causing freezing conda environments, and I am looking for a work around.
Is there something that should go after metpy in the meta.yml?
Beta Was this translation helpful? Give feedback.
All reactions