-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
65 lines (57 loc) · 2.02 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[project]
name = "pyflowy"
version = "1.0.0"
description = "Python bindings for flowy"
authors = [
{name = "Amrita Goswami", email = "[email protected]"},
{name = "Moritz Sallermann", email = "[email protected]"},
{name = "Rohit Goswami", email = "[email protected]"},
]
dependencies = [
"numpy>=1.26.4",
"pybind11>=2.12.0",
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "GPL v3"}
[build-system]
# These are all that are seen by pip install .
requires = ["pybind11", "meson-python", "numpy"]
build-backend = "mesonpy"
# Important, tells pip how to install the package
[tool.meson-python.args]
setup = [
'-Dwrap_mode=forcefallback',
# ^-- collects subprojects, see https://github.com/ERGO-Code/HiGHS/pull/1343#discussion_r1252446966
]
# Skip during installation to prevent local RPATH stripping issues
# See: https://github.com/mesonbuild/meson-python/discussions/410
install = ['--skip-subprojects']
# Include so auditwheel on the CI can correctly generate wheels
# See: https://github.com/ERGO-Code/HiGHS/pull/1343/files
dist = ['--include-subprojects']
[tool.cibuildwheel]
build-frontend = "build"
# TODO(rg): Needs an equivalent on windows, use an override
before-build = "bash {project}/tools/wheels/cibw_setup.sh {project}"
test-command = "pytest {project}/tests"
test-requires = "pytest"
build-verbosity = 1
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
manylinux-i686-image = "manylinux2014"
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
# /project will be the $PWD equivalent inside the docker used to build the wheel
[tool.cibuildwheel.linux.environment]
RUNNER_OS="Linux"
[tool.cibuildwheel.macos.environment]
RUNNER_OS="MacOS"
[tool.cibuildwheel.macos]
archs = ["x86_64 arm64"]
repair-wheel-command = [
"delocate-listdeps {wheel}",
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",
]
# [tool.cibuildwheel.windows]
# before-build = "pip install delvewheel"
# repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"