Skip to content

Commit 8f26419

Browse files
committed
Update pypi default index url
1 parent 8efd7aa commit 8f26419

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/build_wheels_macos_m1.yml

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
SDIST: ${{ matrix.build_sdist || 0 }}
3535
ENABLE_HEADLESS: ${{ matrix.without_gui }}
3636
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
37+
PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
3738
steps:
3839
- name: Cleanup
3940
run: find . -mindepth 1 -delete
@@ -82,6 +83,7 @@ jobs:
8283
env:
8384
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}/opencv_extra/testdata
8485
PYLINT_TEST_FILE: ${{ github.workspace }}/opencv/samples/python/squares.py
86+
PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
8587
steps:
8688
- name: Cleanup
8789
run: find . -mindepth 1 -delete

travis_config.sh

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ else
3636
echo " > Linux environment "
3737
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Qt5.15.0/lib
3838
export MAKEFLAGS="-j$(grep -E '^processor[[:space:]]*:' /proc/cpuinfo | wc -l)"
39+
if [[ $PLAT == 'aarch64' ]]; then
40+
# To avoid network issues with pypi.org on OpenCV CN machines
41+
export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
42+
echo "Running for linux aarch64"
43+
fi
3944
fi
4045

4146
if [ -n "$IS_OSX" ]; then

0 commit comments

Comments
 (0)