Skip to content

How to test local cli.py changes without full compilation? #7176

@tangelll

Description

@tangelll

Hi everyone,

I'm working on the --link-raster task and I've modified the cli.py file. I'm trying to test it locally on my Mac, but I'm stuck with a path issue:

If I run GRASS normally, it uses the system installation and doesn't see my new code.

If I use PYTHONPATH to point to my local folder, I get this error:
FileNotFoundError: /usr/local/grass85/etc/@GISBASE_INSTALL_PATH@/etc/clean_temp

I understand this is because my local source is not compiled and has these "placeholder" paths.

Since I'm only changing the Python code in cli.py, is there a simple way to test this without compiling the whole GRASS project from source? Or should I just open a Draft PR and use the CI/CD tests to see if it works?

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions