[GRASS-git] [OSGeo/grass] 46d62b: grass.script: Remove build vars from setup.py (#6391)

Vaclav Petras noreply at github.com
Wed Sep 24 18:23:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 46d62b4e4a704558c1f3af02de5a24d8ef36621d
      https://github.com/OSGeo/grass/commit/46d62b4e4a704558c1f3af02de5a24d8ef36621d
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2025-09-24 (Wed, 24 Sep 2025)

  Changed paths:
    M gui/wxpython/core/utils.py
    M lib/init/grass.py
    M python/grass/CMakeLists.txt
    M python/grass/app/runtime.py
    M python/grass/script/Makefile
    M python/grass/script/setup.py
    M scripts/g.extension/g.extension.py

  Log Message:
  -----------
  grass.script: Remove build vars from setup.py (#6391)

Remove build vars from setup and use the existing dependency on grass.app.runtime to get the information. Additionally, move some of the parametrization to grass.app.runtime because now, both the functions executing the setup steps and the variable are there, so there is no reason to supply these from the outside.

Config dir does not require version, but I kept a general function there which is used in g.extension and in GUI because these use the runtime-obtained version as opposed to the one from grass.app.runtime (difference between running system and setup of the env).

I removed the build variables from the documentation which makes it a little simpler to edit, although less explicit assuming that the version usage there was actually correct. The example needs more unrelated edits, so I'm keeping it as is.

This removes the working Autotools variable substitution and the not working CMake variable substitution.

The env parameter is now a mandatory keyword argument, so adds env= accordingly.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list