Ludovic Courtès writes: > Vivien Kraus skribis: >> Meson needs to be wrapped, but the wrapping must not execute a new >> process, if I understand correctly. I could use wrap-script, but I think >> it’s more pythonic to set the path through sys.path rather than setting >> an environment variable. > > Isn’t that what ‘wrap-script’ does? I think wrap-script converts the python script to a guile script that happens to be the same file as the python script. I realize it won’t even insert python code in the final program, so the wrapping code won’t be executed when the python module is loaded by the python interpreter. > How about providing a user-facing ‘meson’ package that incorporates this > fix, while keeping the other ‘meson’ packages unchanged, to avoid > rebuilding too much? This can be achieved by marking the other packages > as hidden. I pushed an update that does precisely that. Is the name "meson-wrapped" OK? Also, how can I influence guix to rather install the wrapped version when the user invokes "guix install meson"? > Could you check ‘guix gc --references meson’ to make sure it does not > capture too much? (GUIX_PYTHONPATH might contain references to > build-time dependencies.) I see, the only thing to wrap is just the "out" output in fact.