← Back to issue list

Meson Plugin with python or gjs based app

View original Github issue

Metadata

Project
craft-parts
Number
#561
Type
issue
State
open
Author
soumyaDghosh
Labels
Created
2023-10-06 08:04:58+00:00
Updated
2025-03-11 14:29:09+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description Same as the python plugin, when the meson plugin installs the files of a python or gjs based app, it cannot find the proper interpreter for them. To fix it, we have to manually fix the first line of those files. ### To Reproduce https://github.com/Sjoerd1993/Graphs/blob/main/snap/snapcraft.yaml#L88 This is an example snap, just remove this line and see the error. ### part yaml ```shell graphs: after: [ blueprint-compiler, numpy ] plugin: meson source: https://github.com/Sjoerd1993/Graphs.git meson-parameters: - --prefix=/snap/graphs/current/usr - --buildtype=release build-environment: - PYTHONPATH: $CRAFT_STAGE/usr/lib/python3/dist-packages:$PYTHONPATH - GI_TYPELIB_PATH: /snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:/snap/gnome-42-2204-sdk/current/usr/lib/girepository-1.0 organize: snap/graphs/current/usr: usr parse-info: [usr/share/appdata/se.sjoerd.Graphs.appdata.xml] ``` ### Relevant log output ```shell Logs can be found by installing the snap that'll build from the above given yaml. It'll fail to find the correct python interpreter. ```

Evaluation history

No evaluation history available.