Skip to content

Commit

Permalink
pyinstaller: remove stray libspatialindex reference
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoup committed Oct 5, 2022
1 parent 2fabc6c commit 8688ab9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions platforms/linux/pyinstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ rm -rf vendor/dist/env/
tar xzf vendor/dist/vendor-Linux.tar.gz -C vendor/dist/ env
tar xzf vendor/dist/vendor-Linux.tar.gz -C /venv --strip-components=1 env/lib/

# get the Rtree installer working successfully
export SPATIALINDEX_C_LIBRARY="/venv/lib/libspatialindex_c.so"

pip install --no-deps --ignore-installed -r requirements.txt
pip install --no-deps \
/tmp/wheelhouse/*.whl
Expand All @@ -49,14 +46,14 @@ pyinstaller \
# # fix up .so files which should be symlinks
VENDOR_LIB=/src/vendor/dist/env/lib/
(cd platforms/linux/dist/kart/ \
&& for library in `ls *.so*`; do
if [ -e $VENDOR_LIB/$library ] ; then
if [ -L $VENDOR_LIB/$library ]; then
&& for library in `ls *.so*`; do
if [ -e $VENDOR_LIB/$library ] ; then
if [ -L $VENDOR_LIB/$library ]; then
ln -sf `readlink $VENDOR_LIB/$library` $library
else
strip $library;
fi;
fi;
else
strip $library;
fi;
fi;
done)

{ echo ">> Post-bundle Smoke Test ..."; } 2> /dev/null
Expand Down

0 comments on commit 8688ab9

Please sign in to comment.