Skip to content

Commit 16483d9

Browse files
authored
build: enable musllinux wheels (#349)
* enable musllinux wheels * see if we can wrangle apk * apk add, not install; handle eventuality of debian * need to add gmp-dev as well
1 parent aa5f745 commit 16483d9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,14 @@ strict_equality = true
9393
ignore_missing_imports = true
9494

9595
[tool.cibuildwheel]
96-
# Skip musllinux builds for the moment
97-
skip = "*-musllinux_*"
9896
test-extras = "test"
9997
test-command = "pytest {project}/tests"
10098

10199
[tool.cibuildwheel.linux]
102100
before-all = [
103-
"yum update -y",
104-
"yum install -y mpfr-devel",
101+
"if command -v yum > /dev/null; then yum update -y; yum install -y mpfr-devel; fi",
102+
"if command -v apt-get > /dev/null; then apt-get update -y; apt-get install -y libmpfr-dev; fi",
103+
"if command -v apk > /dev/null; then apk update; apk add mpfr-dev gmp-dev; fi",
105104
"curl -L https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.bz2 -o boost_1_87_0.tar.bz2",
106105
"tar --bzip2 -xf boost_1_87_0.tar.bz2",
107106
"mv boost_1_87_0/boost /usr/include/boost",

0 commit comments

Comments
 (0)