Skip to content

Commit f90c33f

Browse files
thomasjpfanogrisel
authored andcommitted
BLD Build 3.10 wheel [cd build gh] (#21232)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
1 parent 3c2965c commit f90c33f

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

.github/workflows/wheels.yml

+15
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
python: 39
6262
bitness: 64
6363
platform_id: win_amd64
64+
- os: windows-latest
65+
python: 310
66+
bitness: 64
67+
platform_id: win_amd64
6468

6569
# Window 32 bit
6670
- os: windows-latest
@@ -109,6 +113,13 @@ jobs:
109113
bitness: 64
110114
platform_id: manylinux_x86_64
111115
manylinux_image: manylinux2010
116+
117+
# NumPy on Python 3.10 only supports 64bit and is only available with manylinux2014
118+
- os: ubuntu-latest
119+
python: 310
120+
bitness: 64
121+
platform_id: manylinux_x86_64
122+
manylinux_image: manylinux2014
112123

113124
# Linux 32 bit manylinux1
114125
- os: ubuntu-latest
@@ -157,6 +168,10 @@ jobs:
157168
bitness: 64
158169
python: 39
159170
platform_id: macosx_x86_64
171+
- os: macos-latest
172+
bitness: 64
173+
python: 310
174+
platform_id: macosx_x86_64
160175

161176
steps:
162177
- name: Checkout scikit-learn

.travis.yml

+23-13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# new container-based Travis workers
33
language: python
44
dist: xenial
5+
# Only used to install cibuildwheel, CIBW_BUILD determines the python version being
6+
# built in the docker image itself. Also: travis does not have 3.10 yet.
7+
python: 3.9
58

69
cache:
710
apt: true
@@ -22,7 +25,7 @@ env:
2225
# Custom environment variables for the ARM wheel builder
2326
- CIBW_BUILD_VERBOSITY=1
2427
- CIBW_TEST_COMMAND="bash {project}/build_tools/travis/test_wheels.sh"
25-
- CIBW_ENVIRONMENT="CPU_COUNT=2
28+
- CIBW_ENVIRONMENT="CPU_COUNT=4
2629
OMP_NUM_THREADS=2
2730
OPENBLAS_NUM_THREADS=2
2831
SKLEARN_BUILD_PARALLEL=10
@@ -37,38 +40,45 @@ jobs:
3740
# a scheduled task to build the weekly dev build on the main branch. The
3841
# weekly frequency is meant to avoid depleting the Travis CI credits too
3942
# fast.
40-
- python: 3.7
41-
os: linux
43+
- os: linux
4244
arch: arm64-graviton2
4345
dist: focal
44-
virt: lxd
46+
virt: vm
4547
group: edge
4648
if: type = cron or commit_message =~ /\[cd build\]/
4749
env:
48-
- BUILD_WHEEL=true
4950
- CIBW_BUILD=cp37-manylinux_aarch64
51+
- BUILD_WHEEL=true
5052

51-
- python: 3.8
52-
os: linux
53+
- os: linux
5354
arch: arm64-graviton2
5455
dist: focal
55-
virt: lxd
56+
virt: vm
5657
group: edge
5758
if: type = cron or commit_message =~ /\[cd build\]/
5859
env:
59-
- BUILD_WHEEL=true
6060
- CIBW_BUILD=cp38-manylinux_aarch64
61+
- BUILD_WHEEL=true
6162

62-
- python: 3.9
63-
os: linux
63+
- os: linux
6464
arch: arm64-graviton2
6565
dist: focal
66-
virt: lxd
66+
virt: vm
6767
group: edge
6868
if: type = cron or commit_message =~ /\[cd build\]/
6969
env:
70-
- BUILD_WHEEL=true
7170
- CIBW_BUILD=cp39-manylinux_aarch64
71+
- BUILD_WHEEL=true
72+
73+
- os: linux
74+
arch: arm64-graviton2
75+
dist: focal
76+
virt: vm
77+
group: edge
78+
if: type = cron or commit_message =~ /\[cd build\]/
79+
env:
80+
- CIBW_BUILD=cp310-manylinux_aarch64
81+
- BUILD_WHEEL=true
7282

7383
install: source build_tools/travis/install.sh || travis_terminate 1
7484
script: source build_tools/travis/script.sh || travis_terminate 1

0 commit comments

Comments
 (0)