fix tensorflow setup libs issue

This commit is contained in:
Mathieu Broillet 2024-07-19 22:34:22 +02:00
parent 4d9621920f
commit 899d558c2d
Signed by: mathieu
GPG Key ID: C4A6176ABC6B2DFC
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
pyinstaller --noconfirm --onefile --console --add-data libs:. --add-data assets:assets --add-data static:static --add-data templates:templates --name easy-local-alpr-1.0.0-linux_x86_64 "alpr_api.py"
pyinstaller --noconfirm --onefile --console --add-data libs:. --add-data assets:assets --add-data static:static --add-data templates:templates --name easy-local-alpr-1.1.0-openvinocpu_linux_x86_64 "alpr_api.py"

View File

@ -139,8 +139,8 @@ else
tar -xf libtensorflow-cpu-linux-x86_64-2.6.0.tar.gz -C "$BIN_DIR/tensorflow" >/dev/null 2>&1
fi
mv "$BIN_DIR/tensorflow/lib/"* "$BIN_DIR/libs/"
cp "$BIN_DIR/libs/libtensorflow.so.2" "$BIN_DIR/libs/libtensorflow.so.1"
mv "$BIN_DIR/tensorflow/lib/libtensorflow.so.1" "$BIN_DIR/libs/libtensorflow.so.1"
mv "$BIN_DIR/tensorflow/lib/libtensorflow_framework.so.2.6.0" "$BIN_DIR/libs/libtensorflow_framework.so.2"
# Build the wheel
echo "Building the wheel..."