-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathcibuildwheel.toml
More file actions
64 lines (51 loc) · 2.45 KB
/
cibuildwheel.toml
File metadata and controls
64 lines (51 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[tool.cibuildwheel]
# We only build native to the local machine. If desired, this can be changed
# to auto to build for all locally supported platforms. 32-bit builds on a
# 64-bit architecture can be disabled by setting this to auto64.
archs = ["native"]
# We use build (instead of setuptools or pip) to create the Scilpy package
build-frontend = "build"
# We build for all those python versions, plus extras
# (see below for skipped implementations)
# TODO: add back *311-* when we pass to h5py >=3.8
build = "*39-* *310-* *311-*"
# By default, we skip :
# - All Pypa builds, since we have C extensions (not fully supported)
# - All windows builds (spams doesn't handle them)
# - All aarch64 builds (we don't have wheels for vtk)
skip = "*musllinux* pp* *-win* *-win32* *aarch64"
test-command = "echo 'Wheel installed successfully'"
# Dipy forgot to list packaging, we should not need this after 1.8.0
# before-test = "pip install packaging"
# Install blas, lapack, freetype on x86_64
[tool.cibuildwheel.linux]
before-all = "yum -y update && yum -y install blas-devel lapack-devel freetype-devel libgit2-glib libgit2-devel"
before-test = "yum -y update && yum -y install openblas-devel lapack freetype && pip install packaging"
before-build = """
yum -y groupinstall "Development Tools"
yum -y install cmake openssl-devel libcurl-devel git
git clone https://github.com/libgit2/libgit2.git
cd libgit2
git checkout v1.9.0
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make -j$(nproc)
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export CMAKE_PREFIX_PATH=/usr/local
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
"""
environment = { SETUPTOOLS_USE_DISTUTILS = "stdlib", PKG_CONFIG_PATH = "/usr/local/lib/pkgconfig", CMAKE_PREFIX_PATH = "/usr/local", LD_LIBRARY_PATH = "/usr/local/lib"}
# Musl Linux uses APK instead of YUM, on x86_64
# Need debug for spams with python 3.12
#[[tool.cibuildwheel.overrides]]
#select = "*-musllinux*"
#before-all = "apk add --no-cache blas-dev lapack-dev freetype-dev"
#before-test = "apk add --no-cache openblas-dev lapack freetype && pip install packaging"
# To reinstate once vtk has official linux aarch64 wheels available (we won't build them for them)
#[[tool.cibuildwheel.overrides]]
#select = "*aarch64"
#before-test = """
#pip install packaging
#pip config set global.extra-index-url https://gitlab.kitware.com/api/v4/projects/13/packages/pypi/simple/
#"""