Skip to content

Commit

Permalink
Merge pull request #259 from oscarbenjamin/pr_aarch64
Browse files Browse the repository at this point in the history
Add Linux aarch64 wheels
  • Loading branch information
oscarbenjamin authored Feb 7, 2025
2 parents 2e693d5 + 4c6b61e commit 292fa0d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/buildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-13, macos-14]
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]

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

steps:
- uses: actions/setup-python@v5
Expand Down
7 changes: 7 additions & 0 deletions bin/cibw_before_all_linux_aarch64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

yum install -y xz
bin/build_dependencies_unix.sh\
--gmp gmp\
--host aarch64-pc-linux-gnu\
--use-gmp-github-mirror
File renamed without changes.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "python-flint"
description = "Bindings for FLINT"
version = "0.7.0a5"
# This needs to be in sync with README, cibuildwheel and CI config.
requires-python = ">= 3.10"
requires-python = ">= 3.11"
authors = [
{name = "Fredrik Johansson", email = "[email protected]"},
]
Expand Down Expand Up @@ -81,14 +81,15 @@ package = "flint"
[tool.cibuildwheel]
# requires-python needs to keep in sync with this and also the list of Python
# versions the wheels are tested against in CI.
build = "cp310-* cp311-* cp312-* cp313-* pp310-*"
build = "cp311-* cp312-* cp313-*" # pp311-*"
skip = "*-win32 *-manylinux_i686 *-musllinux_*"

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

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

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

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

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

0 comments on commit 292fa0d

Please sign in to comment.