![]() This makes it more complicated than needed, requiring some workarounds. This may not be strictly necessary, but I am doing it make sure that my builds use Python 3 instead of Python 2.7, which is still what ships with the Mac.Īnaconda defaults to Python 3.7.6, which will not compile GRASS properly. Create an Anaconda environment for Python 3.6.10 GRASS-7.9.app/Contents/ist to change all references to 7.9 to 7.8.Ģ. GRASS-7.8.app/Contents/MacOS/Grass.sh' to refer to GRASS 7.8Ĭhange: "$GRASS_PYTHON" "$GISBASE/bin/grass79" "-gui" "$GRASS_PYTHON" "$GISBASE/bin/grass78" "-gui" use a text editor to modify '. Then show package contents for ' GRASS-7.8.app' and use a text editor to modify the last line of the file '. To do this, you will need to look inside the app by Ctrl-clicking on it and selecting ' "show package contents"', which reveals the app as a folder with other folders and files inside.įor example, to make a shell for GRASS 7.8, copy the uploaded ' GRASS-7.9.app' and rename it to ' GRASS-7.8.app' This can be modified serve for different versions of GRASS by altering the last line of the script that launches GRASS in the app shell. Create a Mac app shell (I have uploaded an example for GRASS 7.9 you can use as is, modified from shells created by Eric Hutton). You can download these here: File:Grass macapp anaconda supporting files.zip 1. This process also requires some patches and other supporting files. This tutorial assumes you are familiare with this command line interface. You will need to work from the Mac terminal to compile GRASS of course. It may work with other versions, but has not been tested. This workflow can be used with MacOS 10.14 and 10.15. You will also need to install Apple's XCode and the command-line tools to compile sofware. ![]() You will of course need to download a copy of the GRASS source code. You must first install the Anaconda package for Python. Some of the steps you won't need to repeat (e.g., creating an anaconda environment). ![]() You can modify them if you don't need some of the steps. These instructions are for creating a self-contained Mac app, including all dependencies, with GRASS 7.9 and Anaconda. Using Anaconda to Create a Binary Mac App for GRASS Use Disk Utility to make a distribution package Set up folder to make a binary package for distribution 2 Optional: create a binary distribution package.cd to the grass source folder and apply patches to configure and make files Create a symlink to Python so that pythonw can find it (may become unneeded in the future) Install GRASS dependencies into Mac app shell, including Python 3.6.10 Export the path to the GRASS Mac app shell so that subsequent operations use the environment of that shell Download the Python 3 miniconda installer and use it to install a minimal anaconda environment into the Mac app shell Activate the Anaconda Python 3.6.10 environment ![]() 1 Using Anaconda to Create a Binary Mac App for GRASS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |