-
Notifications
You must be signed in to change notification settings - Fork 68
/
pyproject.toml
27 lines (26 loc) · 1.22 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
[build-system]
requires = [
'setuptools',
'wheel',
'Cython == 3.0.4',
# https://numpy.org/devdocs/user/depending_on_numpy.html#build-time-dependency
# from https://github.com/scipy/oldest-supported-numpy/pull/78#issuecomment-1747936818:
"oldest-supported-numpy; platform_python_implementation != 'PyPy'",
"numpy; platform_python_implementation=='PyPy'"
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
# Use --no-third-party to avoid linking in GLPK.
# The resulting binary would not be distributable.
before-all = """
apt-get install --yes wget || yum install -y wget || brew install bash coreutils
wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
sed -i.bak '/invoke_make/s/install/-j1 install/' coinbrew
chmod +x coinbrew
case "$CIBW_ARCHS" in
arm64) config_args='--build=arm-apple-darwin';;
esac
eval ./coinbrew build Cbc@2.10.10 --no-third-party --parallel-jobs 16 --prefix=$(pwd)/local --verbosity 4 $config_args || echo ignoring errors
"""
environment = { PATH="$(pwd)/local/bin:$PATH", LD_LIBRARY_PATH="$(pwd)/local/lib:$LD_LIBRARY_PATH", PKG_CONFIG_PATH="$(pwd)/local/lib/pkgconfig:$PKG_CONFIG_PATH" }
skip = ["pp*-macosx*", "*-musllinux*", "pp31*-*", "pp*-*i686"]