-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
51 lines (41 loc) · 1.53 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools", "wheel", "numpy", "Cython", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.cibuildwheel]
archs = ["native"]
skip = "cp27-* cp35-* pp* *win32 *musllinux*"
build-frontend = "build"
test-command = "pytest {package}/tests"
before-test = ""
test-requires = ["pytest"]
test-extras = []
manylinux-x86_64-image = "manylinux2014"
[tool.cibuildwheel.linux]
before-all = """
yum update -y &&
yum install -y nasm &&
python scripts/fetch-ffmpeg /tmp/vendor &&
bash -euxo pipefail scripts/fetch_libjpeg-turbo.sh
"""
before-build = "git clean -dxf *.cpp *.so *.c dist/ build/"
repair-wheel-command = """
python -m pip install -U auditwheel==4.0.0 &&
python -m auditwheel -V &&
python -m auditwheel show {wheel} &&
python -m auditwheel repair -w {dest_dir} {wheel}
"""
[tool.cibuildwheel.linux.environment]
LD_LIBRARY_PATH="/tmp/libjpeg-turbo-build/lib:/tmp/vendor/lib:$LD_LIBRARY_PATH"
PKG_CONFIG_PATH="/tmp/libjpeg-turbo-build/lib/pkgconfig:/tmp/vendor/lib/pkgconfig"
[tool.cibuildwheel.macos]
before-all = """
python scripts/fetch-ffmpeg /tmp/vendor &&
bash -euxo pipefail scripts/fetch_libjpeg-turbo.sh
"""
[tool.cibuildwheel.macos.environment]
LDFLAGS="-headerpad_max_install_names"
PKG_CONFIG_PATH="/tmp/libjpeg-turbo-build/lib/pkgconfig:/tmp/vendor/lib/pkgconfig"
[tool.cibuildwheel.windows]
before-all = "pip install delvewheel && python scripts\\fetch-ffmpeg C:\\cibw\\vendor"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel} --add-path C:\\cibw\\vendor\\bin"