Skip to content

Commit 292fa0d

Browse files
Merge pull request #259 from oscarbenjamin/pr_aarch64
Add Linux aarch64 wheels
2 parents 2e693d5 + 4c6b61e commit 292fa0d

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/workflows/buildwheel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu-20.04, windows-2019, macos-13, macos-14]
13+
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]
1414

1515
steps:
1616
- uses: actions/checkout@v4
@@ -83,10 +83,10 @@ jobs:
8383
strategy:
8484
fail-fast: false
8585
matrix:
86-
os: [ubuntu-20.04, windows-2019, macos-13, macos-14]
86+
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]
8787
# This list to be kept in sync with cibuildwheel config
8888
# and python-requires in pyproject.toml.
89-
python-version: ['3.10', '3.11', '3.12', '3.13-dev', 'pypy3.10']
89+
python-version: ['3.11', '3.12', '3.13'] # , 'pypy3.10']
9090

9191
steps:
9292
- uses: actions/setup-python@v5
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
yum install -y xz
4+
bin/build_dependencies_unix.sh\
5+
--gmp gmp\
6+
--host aarch64-pc-linux-gnu\
7+
--use-gmp-github-mirror
File renamed without changes.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "python-flint"
33
description = "Bindings for FLINT"
44
version = "0.7.0a5"
55
# This needs to be in sync with README, cibuildwheel and CI config.
6-
requires-python = ">= 3.10"
6+
requires-python = ">= 3.11"
77
authors = [
88
{name = "Fredrik Johansson", email = "[email protected]"},
99
]
@@ -81,14 +81,15 @@ package = "flint"
8181
[tool.cibuildwheel]
8282
# requires-python needs to keep in sync with this and also the list of Python
8383
# versions the wheels are tested against in CI.
84-
build = "cp310-* cp311-* cp312-* cp313-* pp310-*"
84+
build = "cp311-* cp312-* cp313-*" # pp311-*"
8585
skip = "*-win32 *-manylinux_i686 *-musllinux_*"
8686

8787
# This is needed for free-threaded wheels:
8888
# build = "cp313t-*"
8989
# free-threaded-support = true
9090

9191
manylinux-x86_64-image = "manylinux2014"
92+
manylinux-aarch64-image = "manylinux2014"
9293
manylinux-i686-image = "manylinux2014"
9394
test-command = "python -c \"import flint; print(str(flint.fmpz(2)))\""
9495

@@ -106,7 +107,7 @@ PKG_CONFIG_PATH = "$(pwd)/.local/lib/pkgconfig"
106107
# PKG_CONFIG_PATH = "$(pwd)/.local/lib/pkgconfig:$PKG_CONFIG_PATH"
107108

108109
[tool.cibuildwheel.linux]
109-
before-all = "bin/cibw_before_all_linux.sh"
110+
before-all = "bin/cibw_before_all_linux_$(uname -m).sh"
110111

111112
[tool.cibuildwheel.macos]
112113
before-all = "bin/cibw_before_all_macosx_$(uname -m).sh"

0 commit comments

Comments
 (0)