build/linux: Remove bogus pygimp.interp creation on Snap

This commit is contained in:
Bruno Lopes 2025-08-07 10:47:38 -03:00
parent a65440478c
commit 3c02c8bcb7
No known key found for this signature in database

View file

@ -174,14 +174,6 @@ parts:
- mypaint-brushes
- poppler-data
override-stage: |
# fix gimp python interpreters file
cat <<EOF > ${CRAFT_PART_INSTALL}/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/gimp/3.0/interpreters/pygimp.interp
python=/usr/bin/python3
python3=/usr/bin/python3
/usr/bin/python=/usr/bin/python3
/usr/bin/python3=/usr/bin/python3
:Python:E::py::python3:
EOF
# update gimp's plugin search path so it will pick up plugins mounted over snapd's content interface
current_path=$(grep "# (plug-in-path" ${CRAFT_PART_INSTALL}/etc/gimp/3.0/gimprc | cut -d '"' -f2)
echo "(plug-in-path \"${current_path}\")" >> ${CRAFT_PART_INSTALL}/etc/gimp/3.0/gimprc