File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 32
32
SDIST : ${{ matrix.build_sdist || 0 }}
33
33
ENABLE_HEADLESS : ${{ matrix.without_gui }}
34
34
ENABLE_CONTRIB : ${{ matrix.with_contrib }}
35
+ PYTHON_VERSION : ${{ matrix.python-version }}
36
+ MACOSX_DEPLOYMENT_TARGET : 11.0
35
37
PIP_INDEX_URL : https://pypi.tuna.tsinghua.edu.cn/simple
36
38
steps :
37
39
- name : Cleanup
52
54
git submodule update --init multibuild
53
55
echo $ENABLE_CONTRIB > contrib.enabled
54
56
echo $ENABLE_HEADLESS > headless.enabled
55
- export MACOSX_DEPLOYMENT_TARGET=11.0
56
57
python${{ matrix.python-version }} -m pip install toml && python${{ matrix.python-version }} -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | python${{ matrix.python-version }} -m pip install -r /dev/stdin
57
- python${{ matrix.python-version }} setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=wheelhouse -v
58
+ export PYTHON_VERSION=${{ matrix.python-version }}
59
+ python${{ matrix.python-version }} setup.py bdist_wheel --py-limited-api="cp${PYTHON_VERSION//./}" --dist-dir=wheelhouse -v
58
60
delocate-wheel ${{ github.workspace }}/wheelhouse/opencv*
59
61
- name : Saving all wheels
60
62
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 31
31
SDIST : ${{ matrix.build_sdist || 0 }}
32
32
ENABLE_HEADLESS : ${{ matrix.without_gui }}
33
33
ENABLE_CONTRIB : ${{ matrix.with_contrib }}
34
+ PYTHON_VERSION : ${{ matrix.python-version }}
34
35
OPENCV_TEST_DATA_PATH : ${{ github.workspace }}\opencv_extra\testdata
35
36
steps :
36
37
- name : Cleanup
65
66
python -m pip install --upgrade setuptools
66
67
python -m pip install cmake==3.24.2
67
68
python -m pip install toml && python -c "import toml; c = toml.load('pyproject.toml'); print('\n'.join(c['build-system']['requires']))" >> requirements.txt | python -m pip install -r requirements.txt
68
- set "CI_BUILD=1" && python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\wheelhouse -v
69
+ set "CI_BUILD=1" && python setup.py bdist_wheel --py-limited-api=cp%PYTHON_VERSION:.=% --dist-dir=%cd%\wheelhouse -v
69
70
shell : cmd
70
71
- name : Saving all wheels
71
72
uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments