Remove gdal and other optional dependency#94
Conversation
It should be optional.
|
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( I do have some suggestions for making it better though... For recipe:
Documentation on acceptable licenses can be found here. |
|
I saw mentioned here: SciTools/iris#3762 (comment) I'm not sure why I added it as required in #88. Maybe I was just confused about which were required and which not. |
|
@conda-forge-admin, please rerender |
a312624 to
bb4906b
Compare
|
@conda-forge-admin, please rerender |
74e0009 to
eda9786
Compare
|
@conda-forge-admin, please rerender |
|
I added not only |
7471a86 to
463cb4d
Compare
|
@conda-forge-admin, please rerender |
…da-forge-pinning 2020.10.16.18.51.08
62efd27 to
5a9cd30
Compare
|
@conda-forge/cartopy, sorry for the mess in #88. I think this is ready for review if anyone cares to take a look. Based on that experience, another pair of eyes would be a good idea. |
Co-authored-by: Isuru Fernando <isuruf@gmail.com>
|
@xylar Thanks for doing this. The gdal package is a monster and ultimately would have caused dependency issues further down the line for cartopy in a conda environment - particularly as gdal pins the version of libnetcdf, which can restrict other packages from installing their latest versions 👍 |
|
I'm going ahead with the merge. Presumably, this won't make things worse than they currently are... |
|
@danschef, I'm pretty sure you need to explicitly include |
|
@danschef, however, feel free to open an issue and we can discuss this further. |
|
I see, it is listed in the optional dependencies in the documentation. However, it would be nice if cartopy would raise a helpful exception in case optional deps are not installed - instead of just raising an ImportError. I will open an issue for that. |
|
@danschef, that would be an issue for the cartopy repo, this is just a recipe for building cartopy for the conda-forge channel. |
|
Yes, I know. |
|
I find it a bit unfortunate that you did this without a version bump. Because stuff* that used to work in version 0.18 now doesn't work in 0.18... Yes, I know I can easily add the dependencies. But my package doesn't, so I may have to issue a new release there (of course a new version wouldn't have helped my package). Anyway, sorry for the rant & thanks for all your work on cartopy. * By stuff I mean ploting a plot. |
|
@mathause, you need to install some of the optional dependencies for your work. We don't determine the version number at conda-forge, it's determined upstream. |
|
@mathause, sorry for the terse answer earlier, and sorry that this change caused you trouble. The original build of 0.18.0 incorrectly included a lot of optional packages, and several folks were complaining about that. I have tried to contain the damage but clearly it's causing trouble for you the other direction. Would it be possible in the context you're working in to just add the optional dependencies along with the |
|
Thanks, appreciate it. I also didn't mean to be rude, apologies! I did not know matplotlib & scipy were optional dependencies of cartopy - they were always included via conda (e.g. |
|
@ocefpaf, and yet, they have gone out of their way to make |
|
While it is an optional dependency, I'm also not at all clear what utility CartoPy has in that case--or whether anyone is actually using it in that way. |
|
I don't have a problem with adding |
|
@dopplershift what do you think is appropriate for the conda package? @xylar indeed, PS:I'd love to heat what @bjlittle thinks about this too. |
|
I think a dependency on |
|
@ocefpaf and @dopplershift, I don't mind making a PR to add back We've already said that |
|
I would add only |
|
@ocefpaf, thanks for following up on this and for understanding the dilemma I was facing. |
Don't worry. I'm still on not 100% sure what is the best course for us here. I'm 80% on the site of leaving mpl b/c that is what all the users I know expect. Still, that is a subset of all the users. |
|
I 100% agree that it's hard for me to imagine why anyone would install I'm curious why it's not a default requirement upstream but not curious enough to follow up there. |
It should be optional.
Checklist
0(if the version changed)conda-smithy(Use the phrase@conda-forge-admin, please rerenderin a comment in this PR for automated rerendering)