We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91342d5 commit 741672bCopy full SHA for 741672b
1 file changed
.github/build-wheels
@@ -0,0 +1,27 @@
1
+#!/bin/bash
2
+# Build pkgcraft wheels using cibuildwheel with podman or docker.
3
+
4
+ARCHES=${@:-x86_64}
5
6
+# default to using podman on linux
7
+if [[ ${OSTYPE} == "linux-"* ]]; then
8
+ : ${CIBW_CONTAINER_ENGINE:=podman}
9
+ export CIBW_CONTAINER_ENGINE
10
+fi
11
12
+: ${CIBW_PLATFORM:=linux}
13
+export CIBW_PLATFORM
14
15
+python -m venv venv
16
+source venv/bin/activate
17
+pip install --upgrade pip
18
19
+# build sdist if it doesn't exist
20
+if ! compgen -G "dist/*.tar.gz" >/dev/null; then
21
+ pip install tox
22
+ tox -e sdist
23
24
25
+# build wheels
26
+pip install cibuildwheel
27
+cibuildwheel --output-dir wheels --archs ${ARCHES}
0 commit comments