-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
WIP: Enable Windows build #2
Conversation
Although pygmt doesn't work with the gmt conda package on Windows, it works well with the GMT official installers. See GenericMappingTools/pygmt#431 for details. Thus, we can still provide pygmt package on Windows, but - should not install gmt provided by conda-forge - can't test
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 ( |
…da-forge-pinning 2020.05.14.17.14.20
I'm not sure doing this is the best idea. It also might not follow conda forge's protocol. The main issue I see with doing this, is that Windows users will install this conda package and it will not work if they don't have GMT installed by some other method and it is available to the pygmt conda package. Secondly, if GMT is built against dependencies that are incompatible with the equivalent conda forge packages, the user may get errors associated with that. Lastly, there is no way to communicate the special install instructions via conda forge. I'm -1 to adding this unless @conda-forge/core says that this is an appropriate practice on conda recipes. |
Agree with @moorepants. What's the issue with |
There is this issue: conda-forge/gmt-feedstock#90 |
I see lots of mentions of crashes and fails and not how exactly. If there is more information, we could help, but without more details, there's nothing we can do. |
Thanks @isuruf, the maintainers of pygmt will have to report the specifics of the issues. I am not familiar with the package. My cluster users needed it, so my only skin in the game is getting it running on linux. |
We finally find out why PyGMT doesn't work with conda on Windows, see GenericMappingTools/pygmt#434 for details if anyone is interested in it. PyGMT calls We also find out a potential bug in GMT (still need more time to confirm where the GMT bug is), and the workaround is setting an environmental variable GMT_SHAREDIR to the path of GMT's share directory, e.g., After merging GenericMappingTools/pygmt#434 and releasing a new PyGMT version, we should be able to provide the pygmt conda package on Windows, but we need to set the two variables in the meta.yaml file to let the tests pass. I checked the metadata documentation but didn't find how to do that. Any help is appreciated. |
@isuruf Great! Thanks. |
So like this?
@echo off
set "GMT_LIBRARY_PATH=%CONDA_PREFIX%\Library\bin"
set "GMT_SHAREDIR=%CONDA_PREFIX%\Library\share\gmt"
@echo off
set "GMT_LIBRARY_PATH="
set "GMT_SHAREDIR=" |
Actually, should those *.bat activation scripts be placed here in the |
If this fixes things for any dependency of GMT on Windows, then having it in the GMT feedstock sounds helpful. We can also add them here and you can open and issue on the GMT feedstock. |
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipe:
|
Ok, we're fixing these directly on
|
Close and reopen to trigger the build again. |
@conda-forge-admin, please rerender |
The master branch of pygmt now works well on all platforms. Closing this PR. We'll release pygmt v0.1.1 in the next few days. |
Although pygmt doesn't work with the gmt conda package on Windows, it works well with the GMT official installers. See GenericMappingTools/pygmt#431 for details.
Thus, we can still provide pygmt package on Windows, but
@conda-forge-admin, please rerender
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)