Skip to content

Commit 5e11b41

Browse files
committed
Hide bundled Python from linuxdeployqt to avoid scipy/libgfortran scan failure
linuxdeployqt recursively scans all .so files in the package tree and fails when it encounters scipy's internal libgfortran which depends on libquadmath. Temporarily move lib/python/ out of the way during the linuxdeployqt step and restore it afterward.
1 parent 9c9b34b commit 5e11b41

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Support/package.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,22 @@ else
179179
# remove static libs
180180
rm -f lib/*.a
181181

182+
# Move bundled Python out of the way before linuxdeployqt — it recursively
183+
# scans all .so files and chokes on scipy/numpy internal libs (e.g.
184+
# libgfortran -> libquadmath "not found").
185+
if [ -d "lib/python" ]; then
186+
mv lib/python /tmp/_bundled_python_$$
187+
fi
188+
182189
cd bin
183190
linuxdeployqt ShapeWorksStudio -verbose=2
184191
cd ..
185192

193+
# Move bundled Python back
194+
if [ -d "/tmp/_bundled_python_$$" ]; then
195+
mv /tmp/_bundled_python_$$ lib/python
196+
fi
197+
186198
# Keep libfreetype as harfbuzz depends on it (FT_Get_Transform requires freetype 2.11+)
187199
rm -f lib/libxcb* lib/libX* lib/libfont*
188200
rm -rf geometry-central doc

0 commit comments

Comments
 (0)