30 lines
894 B
Bash
Executable File
30 lines
894 B
Bash
Executable File
#!/bin/bash
|
|
# Build Pillow from source and place wheel in req_libraries_32bit
|
|
|
|
set -e
|
|
|
|
echo "======================================="
|
|
echo " BUILD PILLOW FROM SOURCE (32-bit) "
|
|
echo "======================================="
|
|
|
|
# Ensure virtual environment is activated
|
|
echo "Activating .venv..."
|
|
source .venv/bin/activate
|
|
|
|
# Find Pillow source tar.gz
|
|
PILLOW_SRC=$(ls req_libraries_32bit/Pillow-*.tar.gz 2>/dev/null | head -1)
|
|
if [ -z "$PILLOW_SRC" ]; then
|
|
echo "❌ Pillow source distribution not found in req_libraries_32bit."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Building Pillow from source: $PILLOW_SRC"
|
|
pip wheel "$PILLOW_SRC" -w req_libraries_32bit
|
|
|
|
if ls req_libraries_32bit/pillow*.whl >/dev/null 2>&1; then
|
|
echo "✅ Pillow wheel built successfully!"
|
|
echo "You can now install it offline with ./install_32bit.sh."
|
|
else
|
|
echo "❌ Pillow wheel build failed. Check build dependencies."
|
|
fi
|