[GRASS-dev] where to make compiling instructions available

I’ve put together a step by step guide to compiling Mac binaries, using Anaconda. Because it uses Anaconda, it probably does not belong in the source code (though it might help someone create instructions for the source code). However, it would probably be helpful to at least some people. Any suggestions as to where I should put this?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc’

Whether it goes in the macosx directory, or somewhere else, this will be really useful for us Mac users who would like to have GRASS within their own conda environments. I struggle to compile GRASS on macOS and thanks for putting this together.

On May 27, 2020, at 2:59 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve put together a step by step guide to compiling Mac binaries, using Anaconda. Because it uses Anaconda, it probably does not belong in the source code (though it might help someone create instructions for the source code). However, it would probably be helpful to at least some people. Any suggestions as to where I should put this?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc’


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

A script in the source code preferably executed in GitHub Actions seems like a good place for a build of a primary distribution for macOS. It would not only show which latest change to the source code breaks the build, but it would also clearly show that the script itself works over and over again in at least one environment.

Vaclav

On Wed, May 27, 2020 at 5:19 PM Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve put together a step by step guide to compiling Mac binaries, using Anaconda. Because it uses Anaconda, it probably does not belong in the source code (though it might help someone create instructions for the source code). However, it would probably be helpful to at least some people. Any suggestions as to where I should put this?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc’


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On a more general note — it seems to be a good idea to completely
reorganize GRASS source tree structure for G8. I have already added it
to the list of G8 ideas:
https://trac.osgeo.org/grass/wiki/Grass8Planning#Codeorganisationcodingstyles
At the moment we have actual source intermingled with compilation and
packaging related stuff and with every new way how to deliver GRASS it
gets only worse. Feel free to add your ideas on potential new source
tree layout to the trac.

Māris.

piektd., 2020. g. 29. maijs, plkst. 04:14 — lietotājs Vaclav Petras
(<wenzeslaus@gmail.com>) rakstīja:

A script in the source code preferably executed in GitHub Actions seems like a good place for a build of a primary distribution for macOS. It would not only show which latest change to the source code breaks the build, but it would also clearly show that the script itself works over and over again in at least one environment.

Vaclav

On Wed, May 27, 2020 at 5:19 PM Michael Barton <Michael.Barton@asu.edu> wrote:

I've put together a step by step guide to compiling Mac binaries, using Anaconda. Because it uses Anaconda, it probably does not belong in the source code (though it might help someone create instructions for the source code). However, it would probably be helpful to at least some people. Any suggestions as to where I should put this?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Fri, May 29, 2020 at 1:36 AM Maris Nartiss <maris.gis@gmail.com> wrote:

On a more general note — it seems to be a good idea to completely
reorganize GRASS source tree structure for G8. I have already added it
to the list of G8 ideas:
https://trac.osgeo.org/grass/wiki/Grass8Planning#Codeorganisationcodingstyles
At the moment we have actual source intermingled with compilation and
packaging related stuff and with every new way how to deliver GRASS it
gets only worse. Feel free to add your ideas on potential new source
tree layout to the trac.

I agree. Do you want to start this conversation in a new thread?

Māris.

Hi Michael,

With your help, we could try to create a recipe to automatically build a conda package and add it to conda-forge, so the installation would be seamless for other mac users.

Cheers,
Laurent

Le mer. 27 mai 2020 à 16:19, Michael Barton <Michael.Barton@asu.edu> a écrit :

I’ve put together a step by step guide to compiling Mac binaries, using Anaconda. Because it uses Anaconda, it probably does not belong in the source code (though it might help someone create instructions for the source code). However, it would probably be helpful to at least some people. Any suggestions as to where I should put this?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc’


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Hi!

At this point I think the building instructions for anaconda (and later macports) should be placed in grasswiki as a new page linked from "Compile and Install" mac section [1]. Maybe: https://grasswiki.osgeo.org/wiki/Compiling_on_MacOSX_using_Anaconda.

I know we discussed [2] replacing/updating the text of macosx/ReadMe.md file, but I realised that that particular instruction (however outdated) is related to the whole of the content of that directory (which in turn is presently not functional, reported as issue #457 [3]). So I believe we should leave that directory and the ReadMe as is, until the issue is addressed.

The new wiki pages with instructions for anaconda and macports may perhaps be referenced to in INSTALL file.

Setting up a build script in source for GitHub Actions would be more than welcome(!), but doesn’t contradict the idea of publishing the instructions on wiki.

Nicklas

[1] https://grasswiki.osgeo.org/wiki/Compile_and_Install#Mac_OSX
[2] https://github.com/OSGeo/grass/pull/636
[3] https://github.com/OSGeo/grass/issues/457

I’ve put the instructions and supporting files onto the wiki page you made. Thanks for setting it up!

https://grasswiki.osgeo.org/wiki/Compiling_on_MacOSX_using_Anaconda

I think it all reads and links fine now, but it took a lot to get it formatted and linked correctly. Mediawiki is an infuriating variant of standard wiki and markdown.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc’

On Jun 2, 2020, at 2:03 AM, Nicklas Larsson <n_larsson@yahoo.com> wrote:

Hi!

At this point I think the building instructions for anaconda (and later macports) should be placed in grasswiki as a new page linked from “Compile and Install” mac section [1]. Maybe: https://urldefense.proofpoint.com/v2/url?u=https-3A__grasswiki.osgeo.org_wiki_Compiling-5Fon-5FMacOSX-5Fusing-5FAnaconda&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=oJi6OFZdzEJSCtUfsG9WNrH4x_wu5Fm1Yv5pZcltUNw&s=Im8NH4J8EQ-2ZwfWaxxFCosFb2N7wAwnDiQlq2wNyWM&e= .

I know we discussed [2] replacing/updating the text of macosx/ReadMe.md file, but I realised that that particular instruction (however outdated) is related to the whole of the content of that directory (which in turn is presently not functional, reported as issue #457 [3]). So I believe we should leave that directory and the ReadMe as is, until the issue is addressed.

The new wiki pages with instructions for anaconda and macports may perhaps be referenced to in INSTALL file.

Setting up a build script in source for GitHub Actions would be more than welcome(!), but doesn’t contradict the idea of publishing the instructions on wiki.

Nicklas

[1] https://urldefense.proofpoint.com/v2/url?u=https-3A__grasswiki.osgeo.org_wiki_Compile-5Fand-5FInstall-23Mac-5FOSX&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=oJi6OFZdzEJSCtUfsG9WNrH4x_wu5Fm1Yv5pZcltUNw&s=BfhGgRy84E2upMUMcyyh7wE57sVczd8DYEYOAO0qKiE&e=
[2] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass_pull_636&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=oJi6OFZdzEJSCtUfsG9WNrH4x_wu5Fm1Yv5pZcltUNw&s=Sveq39CHdd8x5VsBRBmVd9N5dhS5sYzh6wzHijtrv0s&e=
[3] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass_issues_457&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=oJi6OFZdzEJSCtUfsG9WNrH4x_wu5Fm1Yv5pZcltUNw&s=8YPtGy_iqCKh7Rr7BnfAIelfYxk_-qT1IlQ_KKrhH8k&e=

Great work Michael! Please consider putting up a link to the new page at https://grasswiki.osgeo.org/wiki/Compile_and_Install#Mac_OSX.
It would also be good to add categories to the end of the new page (as is the case with its sibling pages):

[[Category:Development]]
[[Category:Documentation]]
[[Category:Installation]]

N.

Done for the first. Need to do the second. Maybe between meetings.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc’

On Jun 3, 2020, at 2:12 AM, Nicklas Larsson <n_larsson@yahoo.com> wrote:

Great work Michael! Please consider putting up a link to the new page at https://urldefense.proofpoint.com/v2/url?u=https-3A__grasswiki.osgeo.org_wiki_Compile-5Fand-5FInstall-23Mac-5FOSX&d=DwIFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=2I63rctM7k61dEzqDKL9m8wFBy59fxA6E3-xAtT13cw&s=3H0uuJFiSA2UhhNFG342V2kUv0xp9nVBG3u0XEiARAk&e= .
It would also be good to add categories to the end of the new page (as is the case with its sibling pages):

[[Category:Development]]
[[Category:Documentation]]
[[Category:Installation]]

N.

OK. All done.

I hope someone tries this to see if if works for others.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Director, Network for Computational Modeling in Social & Ecological Sciences
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: 'http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc’

On Jun 3, 2020, at 2:12 AM, Nicklas Larsson <n_larsson@yahoo.com> wrote:

Great work Michael! Please consider putting up a link to the new page at https://urldefense.proofpoint.com/v2/url?u=https-3A__grasswiki.osgeo.org_wiki_Compile-5Fand-5FInstall-23Mac-5FOSX&d=DwIFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=2I63rctM7k61dEzqDKL9m8wFBy59fxA6E3-xAtT13cw&s=3H0uuJFiSA2UhhNFG342V2kUv0xp9nVBG3u0XEiARAk&e= .
It would also be good to add categories to the end of the new page (as is the case with its sibling pages):

[[Category:Development]]
[[Category:Documentation]]
[[Category:Installation]]

N.