| set -e | |
| echo "[postBuild] Prepare build tools..." | |
| python -m pip install -U pip setuptools wheel ninja | |
| echo "[postBuild] Installing vendored detectron2 from MaskClustering/third_party/detectron2 ..." | |
| # Torch уже установлен из requirements.txt к моменту postBuild. | |
| # Отключаем build isolation, чтобы сборка видела установленный torch. | |
| export MAX_JOBS=${MAX_JOBS:-1} | |
| python -m pip install --no-build-isolation -e MaskClustering/third_party/detectron2 | |