-
-
Notifications
You must be signed in to change notification settings - Fork 368
grass.script: Remove build vars from setup.py #6391
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
base: main
Are you sure you want to change the base?
grass.script: Remove build vars from setup.py #6391
Conversation
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.
Unrelated but cool: Pylint in CI uniquely identified a parameter problems other code checks did not, at least not the local ones (I didn't let the actual tests to run in CI). |
I did not touch CMake build here, but it seems that the corresponding configure_file(script/setup.py ${OUTDIR}/${PYDIR_GRASS}/script/setup.py
COPYONLY) |
I removed the special line for setup.py from CMakeList.txt. Unrelated, but i.smap test failed again here. |
It should have been something similar to
If you removed string replace tags in that file, that is fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I would be able to spot a problem here, but it looks ok to me.
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.