Skip to content

Commit 158e72c

Browse files
authored
require --no-build-isolation in torchao builds (#3209)
Summary: TODO write me Test Plan: ```bash // both of the commands below work with-proxy USE_CPP=0 pip install -e . --no-build-isolation with-proxy USE_CPP=1 pip install -e . --no-build-isolation --verbose ``` Reviewers: Subscribers: Tasks: Tags:
1 parent ad533f5 commit 158e72c

18 files changed

+31
-20
lines changed

.github/scripts/ci_test_xpu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export CXX=/usr/bin/g++
88
export SCCACHE_DISABLE=1
99

1010
python3 -m pip install torch torchvision torchaudio pytorch-triton-xpu --index-url https://download.pytorch.org/whl/nightly/xpu --force-reinstall --no-cache-dir
11-
cd torchao && python3 setup.py install && cd ..
11+
cd torchao && pip install . --no-build-isolation && cd ..
1212

1313
python3 -c "import torch; import torchao; print(f'Torch version: {torch.__version__}')"
1414

.github/workflows/1xH100_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
pip install uv
4747
pip install ${{ matrix.torch-spec }}
4848
uv pip install -r dev-requirements.txt
49-
pip install .
49+
pip install . --no-build-isolation
5050
pytest test/integration --verbose -s
5151
pytest test/dtypes/test_affine_quantized_float.py --verbose -s
5252
python test/quantization/quantize_/workflows/float8/test_float8_tensor.py

.github/workflows/1xL4_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
pip install uv
4747
pip install ${{ matrix.torch-spec }}
4848
uv pip install -r dev-requirements.txt
49-
pip install .
49+
pip install . --no-build-isolation
5050
pytest test/integration --verbose -s
5151
pytest test/dtypes/test_affine_quantized_float.py --verbose -s
5252
./test/float8/test_everything_single_gpu.sh

.github/workflows/4xH100_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ jobs:
4444
pip install uv
4545
pip install ${{ matrix.torch-spec }}
4646
uv pip install -r dev-requirements.txt
47-
pip install .
47+
pip install . --no-build-isolation
4848
./test/float8/test_everything_multi_gpu.sh
4949
./test/prototype/mx_formats/test_mx_dtensor.sh

.github/workflows/build_wheels_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- packaging/**
99
- .github/workflows/build_wheels_linux.yml
1010
- setup.py
11+
- .github/scripts/**
1112
push:
1213
branches:
1314
- nightly

.github/workflows/dashboard_perf_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
${CONDA_RUN} python -m pip install --upgrade pip
3131
${CONDA_RUN} pip install ${{ matrix.torch-spec }}
3232
${CONDA_RUN} pip install -r dev-requirements.txt
33-
${CONDA_RUN} pip install .
33+
${CONDA_RUN} pip install . --no-build-isolation
3434
# SAM 2.1
3535
${CONDA_RUN} pip install -r examples/sam2_amg_server/requirements.txt
3636

.github/workflows/doc_build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ jobs:
4343
- name: Install dependencies
4444
run: |
4545
python -m pip install torch
46-
python -m pip install setuptools==78.1.1 --force-reinstall
47-
python -m pip install -e .
46+
python -m pip install -e . --no-build-isolation
4847
pip install -r dev-requirements.txt
4948
python -m pip install -r docs/requirements.txt
5049
- name: Build docs

.github/workflows/nightly_smoke_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ jobs:
3838
python -m pip install --upgrade pip
3939
pip install ${{ matrix.torch-spec }}
4040
pip install -r dev-requirements.txt
41-
python setup.py install
41+
pip install . --no-build-isolation
4242
pytest test --verbose -s

.github/workflows/regression_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
python -m pip install --upgrade pip
5151
pip install ${{ matrix.torch-spec }}
5252
pip install -r dev-requirements.txt
53-
pip install .
53+
pip install . --no-build-isolation
5454
export CONDA=$(dirname $(dirname $(which conda)))
5555
export LD_LIBRARY_PATH=$CONDA/lib/:$LD_LIBRARY_PATH
5656
pytest test --verbose -s
@@ -114,7 +114,7 @@ jobs:
114114
pip install ${{ matrix.torch-spec }}
115115
sed -i '${{ matrix.dev-requirements-overrides }}' dev-requirements.txt
116116
pip install -r dev-requirements.txt
117-
pip install .
117+
pip install . --no-build-isolation
118118
export CONDA=$(dirname $(dirname $(which conda)))
119119
export LD_LIBRARY_PATH=$CONDA/lib/:$LD_LIBRARY_PATH
120120
pytest test --verbose -s

.github/workflows/regression_test_aarch64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ jobs:
3939
pip install executorch
4040
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cpu --force-reinstall
4141
pip install -r dev-requirements.txt
42-
USE_CPP=1 TORCHAO_BUILD_KLEIDIAI=1 pip install .
42+
USE_CPP=1 TORCHAO_BUILD_KLEIDIAI=1 pip install . --no-build-isolation
4343
- name: Install requirements linux
4444
if: runner.os == 'Linux'
4545
run: |
4646
conda activate venv
4747
pip install coremltools
4848
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cpu --force-reinstall
4949
pip install -r dev-requirements.txt
50-
BUILD_TORCHAO_EXPERIMENTAL=1 TORCHAO_BUILD_CPU_AARCH64=1 TORCHAO_BUILD_KLEIDIAI=1 TORCHAO_ENABLE_ARM_NEON_DOT=1 TORCHAO_PARALLEL_BACKEND=OPENMP pip install .
50+
BUILD_TORCHAO_EXPERIMENTAL=1 TORCHAO_BUILD_CPU_AARCH64=1 TORCHAO_BUILD_KLEIDIAI=1 TORCHAO_ENABLE_ARM_NEON_DOT=1 TORCHAO_PARALLEL_BACKEND=OPENMP pip install . --no-build-isolation
5151
- name: Run python tests
5252
run: |
5353
conda activate venv

0 commit comments

Comments
 (0)