Replies: 6 comments 16 replies
-
This is what I propose:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your input. I was following the least-resistance path and didn't go all-in breaking up the current $GISBASE, but this might be worth persuing. I post here a suggestion of a bit reworked structure, and iteration of Huidae's version.
We add a substructure to the It is an established custom to put non-man page documentation in In general it would be worth studying the content of present |
Beta Was this translation helpful? Give feedback.
-
What are you referring to? The following should work (assuming import sys
import subprocess
sys.path.append(
subprocess.check_output(["grass", "--config", "python_path"], text=True).strip()
)
import grass.script as gs
path = "/tmp/nc_spm/"
gs.create_project(path, epsg="3358")
with gs.setup.init(path):
epsg = gs.parse_command("g.proj", flags="g")["srid"]
assert epsg == "EPSG:3358" |
Beta Was this translation helpful? Give feedback.
-
Mapping of the current and the FHS-complying install directories, which should suffice for managing the the two structures:
Given this is set: string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER) The FHS version resolves to the following (after
( |
Beta Was this translation helpful? Give feedback.
-
@sebastic Could you please spare some minutes and give us some of your thought on this topic, while it is still in its embryonic stage? |
Beta Was this translation helpful? Give feedback.
-
I have now implemented the proposed two-way build and install for both the current structure and for FHS enabled with a configuration flag. It is still missing some parts (eg. locale, documentation and man page generation), and have some temporary workarounds for the splitting up of GISBASE content in FHS mode, but it otherwise seems promising. I'm not sure what to do with the GUI part yet.
I think so too. This is what we now have:
As you can see there are some GUI related resources, the question is where to but them. This is a possible new destination/structure:
An alternative is to put the resources under eg. |
Beta Was this translation helpful? Give feedback.
-
In grass-dev ML thread the issue was raised on the reorganisation of the GRASS installation according to Filesystem Hierarchy Standard (FHS). The present work with enabling CMake-based building/installation present an opportunity to adopt such a change. If the community will reach consensus on this goal, this may be the place to discuss the changes that need to be made.
See also FHS on linuxfoundation.org.
This is the current (default) installation structure:
Current (reorganised) Debian installation structure
My proposition for future GRASS structure, based on the above Debian structure and discussion on the ML:
Beta Was this translation helpful? Give feedback.
All reactions