| # 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 | |