-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
33 lines (29 loc) · 1018 Bytes
/
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
[build-system]
requires = ["setuptools>=42",
"wheel",
"numpy",
"PyYAML",
"pybind11",
"pip",
"cmake",
"ninja"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "[%(filename)s:%(funcName)s:%(lineno)d] %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.cibuildwheel]
before-build = "pip install -r requirements.txt -v"
# HOLY FUCK
# https://github.com/pypa/pip/issues/5229#issuecomment-387301397
#environment = { PIP_NO_BUILD_ISOLATION = "true" }
build-verbosity = "3"
[tool.cibuildwheel.linux]
build = "cp311-manylinux_x86_64"
environment = { CIBW_ENVIRONMENT_PASS_LINUX = "TORCH_MLIR_DISTRO_ARCHITECTURE TORCH_MLIR_INSTALL_DIR" }
[tool.cibuildwheel.macos]
build = "cp311-*"
archs = ["arm64"]
environment = { CMAKE_OSX_ARCHITECTURES = "arm64", MACOSX_DEPLOYMENT_TARGET = 12.6 }
repair-wheel-command = "delocate-wheel --ignore-missing-dependencies --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"