Skip to content

Commit b8838a1

Browse files
authored
[Fix] Add --no-index to pip install commands (#3096)
This PR adds the field `--no-index` to mlc-ai/mlc-llm pip install commands to bypass PyPI.
1 parent 24d0796 commit b8838a1

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

ci/task/pylint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export PYTHONPATH="./python":${PYTHONPATH:-""}
99
if [[ -n ${MLC_CI_SETUP_DEPS:-} ]]; then
1010
echo "MLC_CI_SETUP_DEPS=1 start setup deps"
1111
# TVM Unity is a dependency to this testing
12-
pip install --quiet --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
12+
pip install --quiet --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cpu
1313
pip install --quiet --pre -U cuda-python
1414
fi
1515

ci/task/test_model_compile.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,32 @@ pip install --force-reinstall wheels/*.whl
99

1010
if [[ ${GPU} == cuda* ]]; then
1111
TARGET=cuda
12-
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu123
12+
pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cu123
1313
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:$LD_LIBRARY_PATH
1414
elif [[ ${GPU} == rocm* ]]; then
1515
TARGET=rocm
16-
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm57
16+
pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-rocm57
1717
elif [[ ${GPU} == metal ]]; then
1818
TARGET=metal
19-
pip install --pre -U --force-reinstal -f https://mlc.ai/wheels mlc-ai-nightly-cpu
19+
pip install --pre -U --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cpu
2020
elif [[ ${GPU} == wasm* ]]; then
2121
TARGET=wasm
22-
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
22+
pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cpu
2323
export TVM_SOURCE_DIR=$(dirname $(python -c 'import tvm; print(tvm.__file__)'))
2424
export TVM_HOME=${TVM_SOURCE_DIR}
2525
export MLC_LLM_SOURCE_DIR=$(pwd)
2626
cd $TVM_SOURCE_DIR/web/ && make -j${NUM_THREADS} && cd -
2727
cd $MLC_LLM_SOURCE_DIR/web/ && make -j${NUM_THREADS} && cd -
2828
elif [[ ${GPU} == ios ]]; then
2929
TARGET=ios
30-
pip install --pre -U --force-reinstal -f https://mlc.ai/wheels mlc-ai-nightly-cpu
30+
pip install --pre -U --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cpu
3131
elif [[ ${GPU} == android* ]]; then
3232
TARGET=android
33-
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
33+
pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cpu
3434
source /android_env_vars.sh
3535
else
3636
TARGET=vulkan
37-
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
37+
pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cpu
3838
fi
3939

4040
python tests/python/integration/test_model_compile.py $TARGET $NUM_THREADS

ci/task/test_unittest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [[ -n ${MLC_CI_SETUP_DEPS:-} ]]; then
88
# Install dependency
99
pip install --force-reinstall wheels/*.whl
1010
pip install --quiet pytest
11-
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu123
11+
pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cu123
1212
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:$LD_LIBRARY_PATH
1313
fi
1414

docs/install/mlc_llm.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,35 @@ Select your operating system/compute platform and run the command in your termin
3030
.. code-block:: bash
3131
3232
conda activate your-environment
33-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
33+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
3434
3535
.. tab:: CUDA 12.2
3636

3737
.. code-block:: bash
3838
3939
conda activate your-environment
40-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cu122 mlc-ai-nightly-cu122
40+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-llm-nightly-cu122 mlc-ai-nightly-cu122
4141
4242
.. tab:: CUDA 12.3
4343

4444
.. code-block:: bash
4545
4646
conda activate your-environment
47-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cu123 mlc-ai-nightly-cu123
47+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-llm-nightly-cu123 mlc-ai-nightly-cu123
4848
4949
.. tab:: ROCm 6.1
5050

5151
.. code-block:: bash
5252
5353
conda activate your-environment
54-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-rocm61 mlc-ai-nightly-rocm61
54+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-llm-nightly-rocm61 mlc-ai-nightly-rocm61
5555
5656
.. tab:: ROCm 6.2
5757

5858
.. code-block:: bash
5959
6060
conda activate your-environment
61-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-rocm62 mlc-ai-nightly-rocm62
61+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-llm-nightly-rocm62 mlc-ai-nightly-rocm62
6262
6363
.. tab:: Vulkan
6464

@@ -98,7 +98,7 @@ Select your operating system/compute platform and run the command in your termin
9898
.. code-block:: bash
9999
100100
conda activate your-environment
101-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
101+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
102102
103103
.. note::
104104

@@ -124,7 +124,7 @@ Select your operating system/compute platform and run the command in your termin
124124
.. code-block:: bash
125125
126126
conda activate your-environment
127-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
127+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
128128
129129
.. note::
130130
Please make sure your conda environment comes with python and pip.

docs/install/tvm.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,35 +37,35 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
3737
.. code-block:: bash
3838
3939
conda activate your-environment
40-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
40+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cpu
4141
4242
.. tab:: CUDA 12.2
4343

4444
.. code-block:: bash
4545
4646
conda activate your-environment
47-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu122
47+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cu122
4848
4949
.. tab:: CUDA 12.3
5050

5151
.. code-block:: bash
5252
5353
conda activate your-environment
54-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu123
54+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cu123
5555
5656
.. tab:: ROCm 6.1
5757

5858
.. code-block:: bash
5959
6060
conda activate your-environment
61-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm61
61+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-rocm61
6262
6363
.. tab:: ROCm 6.2
6464

6565
.. code-block:: bash
6666
6767
conda activate your-environment
68-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm62
68+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-rocm62
6969
7070
.. tab:: Vulkan
7171

@@ -88,7 +88,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
8888
.. code-block:: bash
8989
9090
conda activate your-environment
91-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
91+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cpu
9292
9393
.. note::
9494

@@ -109,7 +109,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
109109
.. code-block:: bash
110110
111111
conda activate your-environment
112-
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
112+
python -m pip install --pre -U --no-index -f https://mlc.ai/wheels mlc-ai-nightly-cpu
113113
114114
.. note::
115115
Make sure you also install vulkan loader and clang to avoid vulkan

0 commit comments

Comments
 (0)