forked from ERGO-Code/HiGHS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
49 lines (40 loc) · 1.27 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
[build-system]
# Minimum requirements for the build system to execute.
requires = [
"setuptools>=45",
"pybind11>=2.4",
"pyomo>=6.0",
"wheel>=0.2",
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
build = "*"
skip = "cp36-*"
test-skip = ""
[tool.cibuildwheel.linux]
archs = ["x86_64 i686 aarch64 ppc64le s390x"]
before-all = [
"cd /project && ls"
]
before-build = [
"rm -rf build",
"mkdir -p build && cd build",
"cmake -DFAST_BUILD=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/project/installs/highs ..",
"make -j && make install",
]
[tool.cibuildwheel.linux.environment]
DYLD_LIBRARY_PATH = "$DYLD_LIBRARY_PATH:/project/installs/highs/lib:/project/installs/highs/lib64"
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:/project/installs/highs/lib:/project/installs/highs/lib64"
[tool.cibuildwheel.macos]
archs = ["x86_64 arm64"]
repair-wheel-command = [
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel}",
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",
]
[tool.cibuildwheel.windows]
archs = ["AMD64"]
# Only build on CPython 3.9
# build = "cp39-*"
# Use delvewheel on windows
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"