File tree Expand file tree Collapse file tree 6 files changed +15
-3
lines changed Expand file tree Collapse file tree 6 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
echo " ::group::Build wheel"
2
- pip wheel - w " ${env: WHEEL_SDIR} " -- no- deps " .\${env: REPO_DIR} "
2
+ pip install " $env: BUILD_DEPENDS "
3
+ pip wheel - w " ${env: WHEEL_SDIR} " -- no- build-isolation " .\${env: REPO_DIR} "
3
4
ls - l " ${env: GITHUB_WORKSPACE} /${env: WHEEL_SDIR} /"
4
5
echo " ::endgroup::"
5
6
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ echo "::group::Install a virtualenv"
25
25
echo " ::endgroup::"
26
26
27
27
echo " ::group::Build wheel"
28
+ np_dep=$( python ./get_numpy_version.py $MB_PYTHON_VERSION )
29
+ export BUILD_DEPENDS=" ${BUILD_BASE} ${np_dep} "
28
30
np_dep=$( python get_numpy_version.py ${MB_PYTHON_VERSION} )
29
31
export BUILD_DEPENDS=$np_dep
30
32
clean_code
Original file line number Diff line number Diff line change 48
48
MB_PYTHON_VERSION : ${{ matrix.python }}
49
49
MB_ML_LIBC : ${{ matrix.mb-ml-libc }}
50
50
MB_ML_VER : ${{ matrix.mb-ml-ver }}
51
+ BUILD_BASE : " meson-python>=0.13 cython>=3"
51
52
steps :
52
53
- uses : actions/checkout@v4
53
54
with :
Original file line number Diff line number Diff line change 39
39
PLAT : ${{ matrix.platform }}
40
40
MB_PYTHON_VERSION : ${{ matrix.python }}
41
41
TRAVIS_OS_NAME : " osx"
42
+ BUILD_BASE : " meson-python>=0.13 cython>=3"
42
43
steps :
43
44
- uses : actions/checkout@v4
44
45
with :
Original file line number Diff line number Diff line change 30
30
env :
31
31
BUILD_COMMIT : ${{ inputs.build-commit }}
32
32
WHEEL_SDIR : wheelhouse
33
+ MB_PYTHON_VERSION : ${{ matrix.python }}
34
+ BUILD_BASE : " meson-python>=0.13 cython>=3"
33
35
steps :
34
36
- uses : actions/checkout@v4
35
37
with :
39
41
python-version : ${{ matrix.python }}
40
42
- name : Set Numpy version
41
43
run : |
42
- $np_dep = python .\get_numpy_version.py ${{ matrix.python }}
43
- echo "BUILD_DEPENDS=$np_dep" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
44
+ $np_dep = python .\get_numpy_version.py $env:MB_PYTHON_VERSION
45
+ echo "BUILD_DEPENDS=${env:BUILD_BASE} ${ np_dep} " | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
44
46
- name : Build Wheel
45
47
run : .github/workflows/build.ps1
46
48
- uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ function pre_build {
10
10
brew install openblas
11
11
}
12
12
13
+ function pip_wheel_cmd {
14
+ local abs_wheelhouse=$1
15
+ pip wheel $( pip_opts) -w $abs_wheelhouse --no-build-isolation .
16
+ }
17
+
13
18
function run_tests {
14
19
# Runs tests on installed distribution from an empty directory
15
20
python --version
You can’t perform that action at this time.
0 commit comments