Skip to content

Commit aacb1de

Browse files
authored
CI Publish to Pypi workflow for aarch64 wheels (scikit-learn#19060)
1 parent 2fda48b commit aacb1de

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

build_tools/github/check_wheels.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,25 @@
1111
build_matrix = wheel_config['jobs']['build_wheels']['strategy']['matrix']
1212
n_python_versions = len(build_matrix['python'])
1313

14-
# For each python version we have: 6 wheels
14+
# For each python version we have: 5 wheels
1515
# 1 osx wheel (x86_64)
16-
# 3 linux wheel (i686 + x86_64 + arm64)
16+
# 2 linux wheel (i686 + x86_64)
1717
# 2 windows wheel (win32 + wind_amd64)
18-
n_wheels = 6 * n_python_versions
18+
n_wheels = 5 * n_python_versions
1919

2020
# plus one more for the sdist
2121
n_wheels += 1
2222

23+
# aarch64 builds from travis
24+
travis_config_path = Path.cwd() / ".travis.yml"
25+
with travis_config_path.open('r') as f:
26+
travis_config = yaml.safe_load(f)
27+
28+
jobs = travis_config['jobs']['include']
29+
travis_builds = [j for j in jobs
30+
if any("CIBW_BUILD" in env for env in j["env"])]
31+
n_wheels += len(travis_builds)
32+
2333
dist_files = list(Path("dist").glob('**/*'))
2434
n_dist_files = len(dist_files)
2535

0 commit comments

Comments
 (0)