zoo3d / postBuild
drozdgk's picture
Spaces build: install local detectron2 in postBuild with no build isolation; remove runtime pip install
8965662
raw
history blame
522 Bytes
#!/bin/sh
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