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

Build GRASS GIS in a conda environment on macOS #15

Merged
merged 11 commits into from
May 22, 2024

Conversation

mdpiper
Copy link
Member

@mdpiper mdpiper commented May 19, 2024

This PR is an attempt to build GRASS GIS in an isolated conda environment, using only packages from conda-forge, not the OS.

This addresses #14.

@mdpiper
Copy link
Member Author

mdpiper commented May 19, 2024

I'm working through the dependencies in the configure script. I'm currently stuck on PDAL.

@mdpiper
Copy link
Member Author

mdpiper commented May 20, 2024

@chaedri @SamKodama This is just to let you know that I'm working on this.

@mdpiper
Copy link
Member Author

mdpiper commented May 20, 2024

I've got this working on macOS, but not on Linux (failing on make on CentOS and Ubuntu).

@mdpiper mdpiper marked this pull request as ready for review May 21, 2024 16:38
@mdpiper
Copy link
Member Author

mdpiper commented May 21, 2024

@SamKodama I think I've got this working on macOS. If you have a chance to try it, let me know if it works for you.

@SamKodama
Copy link

@mdpiper I was successfully able to create the environment with the .yml file. I don't have mamba so I used conda. I was not able to install grass and received the following output/error
Kodama_CondaEnvAttempt_2.txt

Should I install mamba and try again using mamba instead of conda?

@mdpiper
Copy link
Member Author

mdpiper commented May 22, 2024

@SamKodama Line 167 of your output is suspect because we shouldn't be looking for proj in /usr/share/proj. You'll need to check out the branch this pull request is based on to run the latest version of the install-grass.sh script. But actually, don't worry about this--I'll set up continuous integration to check this. I'll get back to you soon-ish.

@SamKodama
Copy link

Okay, sounds good. Thank you!

@chaedri
Copy link

chaedri commented May 22, 2024

Awesome! I haven't tested but it looks good. I found another repo in our lab that installs GRASS inside a conda environment (for our institutional HPC): https://github.com/ncsu-geoforall-lab/grass-gis-on-hpc-henry2/

@cmbarton might also be helpful here - I think he builds the Mac binaries for GRASS with a conda environment.

@mdpiper
Copy link
Member Author

mdpiper commented May 22, 2024

@chaedri The GRASS conda package is from @mcflugen. :) It's out of date, though, and I don't have time now to update it.

@mcflugen
Copy link
Member

@mdpiper, @chaedri

The GRASS conda package is from @mcflugen.

Yes, that is out of date, the latest version is at https://github.com/nilason/grass-conda

@mdpiper mdpiper changed the title Build GRASS GIS in a conda environment Build GRASS GIS in a conda environment on macOS May 22, 2024
@mdpiper
Copy link
Member Author

mdpiper commented May 22, 2024

I'm going to merge this PR, recognizing that it's a step to a solution--I haven't got it working on Linux, and haven't tried on Windows.

@mdpiper mdpiper merged commit 1d589ae into main May 22, 2024
@mdpiper mdpiper deleted the build-grass-through-conda branch May 22, 2024 18:36
@cmbarton
Copy link

I'm planning on trying to test this over the summer, once I get back to the US. As part of a new NSF grant for GRASS, the GRASS team would like to try to get GRASS as a Conda package for all platforms. So any help in doing this would be greatly appreciated. There is also parallel work going on to make GRASS compatible with Jupyter notebooks.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants