diff --git a/.circleci/unittest/linux/scripts/install.sh b/.circleci/unittest/linux/scripts/install.sh index b0fed7d8b0..b5043d6065 100755 --- a/.circleci/unittest/linux/scripts/install.sh +++ b/.circleci/unittest/linux/scripts/install.sh @@ -32,7 +32,7 @@ printf "* Installing PyTorch\n" printf "Installing torchdata nightly with portalocker\n" pip install "portalocker>=2.0.0" -pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu +pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu printf "* Installing torchtext\n" python setup.py develop diff --git a/.circleci/unittest/windows/scripts/install.sh b/.circleci/unittest/windows/scripts/install.sh index 4c8aec444f..9ce0558fcd 100644 --- a/.circleci/unittest/windows/scripts/install.sh +++ b/.circleci/unittest/windows/scripts/install.sh @@ -21,7 +21,7 @@ conda install -y -c "pytorch-${UPLOAD_CHANNEL}" ${CONDA_CHANNEL_FLAGS} pytorch c printf "* Installing torchdata nightly with portalocker\n" pip install "portalocker>=2.0.0" -pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu +pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu printf "* Installing pywin32_postinstall script\n" curl --output pywin32_postinstall.py https://raw.githubusercontent.com/mhammond/pywin32/main/pywin32_postinstall.py diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 1e507a407f..98824c2d74 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -47,7 +47,7 @@ jobs: -c nvidia "pytorch-${CHANNEL}"::pytorch[build="*${VERSION}*"] \ "${CUDATOOLKIT}" printf "Installing torchdata nightly\n" - python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu + python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu python3 setup.py develop # Install integration test dependencies python3 -m pip --quiet install parameterized diff --git a/.github/workflows/test-linux-cpu.yml b/.github/workflows/test-linux-cpu.yml index 72313f4bc2..518f5f4383 100644 --- a/.github/workflows/test-linux-cpu.yml +++ b/.github/workflows/test-linux-cpu.yml @@ -59,7 +59,7 @@ jobs: "${CUDATOOLKIT}" printf "Installing torchdata nightly\n" python3 -m pip install "portalocker>=2.0.0" - python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu + python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu python3 setup.py develop python3 -m pip install parameterized diff --git a/.github/workflows/test-linux-gpu.yml b/.github/workflows/test-linux-gpu.yml index 13c12c7a2a..1bc124c47e 100644 --- a/.github/workflows/test-linux-gpu.yml +++ b/.github/workflows/test-linux-gpu.yml @@ -64,7 +64,7 @@ jobs: "${CUDATOOLKIT}" printf "Installing torchdata nightly\n" python3 -m pip install "portalocker>=2.0.0" - python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu --quiet + python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu --quiet python3 setup.py develop python3 -m pip install parameterized --quiet diff --git a/.github/workflows/test-macos-cpu.yml b/.github/workflows/test-macos-cpu.yml index 9a3d703079..774595bef9 100644 --- a/.github/workflows/test-macos-cpu.yml +++ b/.github/workflows/test-macos-cpu.yml @@ -66,7 +66,7 @@ jobs: "${CUDATOOLKIT}" printf "Installing torchdata nightly\n" python3 -m pip install "portalocker>=2.0.0" - python3 -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu + python3 -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu python3 setup.py develop python3 -m pip install parameterized diff --git a/.github/workflows/test-windows-cpu.yml b/.github/workflows/test-windows-cpu.yml index 1b4e4884a2..1915ddd91c 100644 --- a/.github/workflows/test-windows-cpu.yml +++ b/.github/workflows/test-windows-cpu.yml @@ -59,7 +59,7 @@ jobs: cpuonly printf "Installing torchdata nightly\n" python -m pip install "portalocker>=2.0.0" - python -m pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu printf "* Installing pywin32_postinstall script\n" curl --output pywin32_postinstall.py https://raw.githubusercontent.com/mhammond/pywin32/main/pywin32_postinstall.py diff --git a/packaging/install_torchdata.sh b/packaging/install_torchdata.sh index 5981a00c76..7db52358a3 100755 --- a/packaging/install_torchdata.sh +++ b/packaging/install_torchdata.sh @@ -22,7 +22,7 @@ if [ "$package_type" = "wheel" ]; then if [ "$channel" = "nightly" ]; then install_cmd="${install_cmd} --pre" fi - install_channel="--extra-index-url https://download.pytorch.org/whl/${channel}/cpu" + install_channel="--index-url https://download.pytorch.org/whl/${channel}/cpu" else install_cmd="conda install" install_channel="-c pytorch-${channel}"