graphwiz-ireland / run_build.sh
hirthickraj2015's picture
GraphWiz Ireland - Complete HF Spaces deployment
9679fcd
raw
history blame
550 Bytes
#!/bin/bash
# GraphWiz Build Runner - Sets threading environment for macOS compatibility
# Set threading limits to avoid conflicts on macOS
export OMP_NUM_THREADS=8
export MKL_NUM_THREADS=8
export OPENBLAS_NUM_THREADS=8
export VECLIB_MAXIMUM_THREADS=8
export NUMEXPR_NUM_THREADS=8
# Activate virtual environment
if [ -d ".venv" ]; then
source .venv/bin/activate
elif [ -d "venv" ]; then
source venv/bin/activate
else
echo "❌ No virtual environment found (.venv or venv)"
exit 1
fi
# Run the build script
python build_graphwiz.py