forked from PyYoshi/cChardet
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
36 lines (32 loc) · 1.31 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
[build-system]
requires = ["setuptools", "wheel", "cython", "pkgconfig"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
build-frontend = "build"
build = "cp3*"
skip = ["*-win32", "*-musllinux_*"]
archs = ["auto"]
test-requires = ['pytest']
test-command = [
'cd {project}',
'python -m pytest {project}'
]
environment = {INCLUDE_PATH="/usr/local/include/uchardet", LIBRARY_PATH="/usr/local/lib64/"}
before-build = [
"git submodule sync --recursive",
"git submodule update --init --force --recursive --depth=1",
"test -d {project}/src/ext/uchardet/build || (cd {project}/src/ext/uchardet/ && mkdir build && cd build && cmake .. && make && make install)",
]
[tool.cibuildwheel.macos]
environment = {INCLUDE_PATH="/usr/local/include/uchardet", LIBRARY_PATH="/usr/local/lib/"}
before-build = [
"git submodule sync --recursive",
"git submodule update --init --force --recursive --depth=1",
"test -d {project}/src/ext/uchardet/build || (cd {project}/src/ext/uchardet/ && mkdir build && cd build && cmake -DCMAKE_MACOSX_RPATH=1 -DCMAKE_INSTALL_NAME_DIR=$LIBRARY_PATH -DCMAKE_BUILD_RPATH=$LIBRARY_PATH .. && make && make install)",
]
[tool.cibuildwheel.windows]
before-build = [
"git submodule sync --recursive",
"git submodule update --init --force --recursive --depth=1",
"make pip"
]