-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
53 lines (47 loc) · 2.03 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
[build-system]
requires = [
"setuptools==58.0.4",
"wheel==0.37.0",
"scipy<=1.8.1;python_version<'3.11'", "scipy>=1.8.1;python_version>='3.11'",
"numpy>=1.23.5;python_version>='3.11'", "numpy<=1.23.5;python_version<'3.11'",
"scikit-learn"
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
skip = ["pp*", "*musllinux*"]
[tool.cibuildwheel.linux]
before-all = "yum install -y openblas-devel libgomp || apk add openblas-dev libgomp"
test-command = ["cd {package}",]
skip = ["*i686", "pp*", "*musllinux*"]
[tool.cibuildwheel.macos]
# Run multiple commands using an array
archs = ["arm64", "x86_64"]
build = "cp*"
test-skip = "*_arm64 *_universal2:arm64"
before-all = [
"source ~/.bashrc",
"conda create -y -n building", "conda init bash",
"source /usr/local/miniconda/etc/profile.d/conda.sh",
"conda activate building",
"conda install -y python=3.10",
"brew install llvm",
]
test-command = ["cd {package}",]
before-build = "build_script/macos.sh"
[tool.cibuildwheel.windows]
# Run multiple commands using an array
before-all = [
"powershell.exe Invoke-WebRequest https://github.com/xianyi/OpenBLAS/releases/download/v0.3.21/OpenBLAS-0.3.21-x86.zip -OutFile D:/a/cyanure/cyanure/openblas_86.zip",
"powershell.exe Expand-Archive -Path D:/a/cyanure/cyanure/openblas_86.zip -DestinationPath D:/a/cyanure/cyanure/openblas_86",
"powershell.exe Invoke-WebRequest https://github.com/xianyi/OpenBLAS/releases/download/v0.3.21/OpenBLAS-0.3.21-x64.zip -OutFile D:/a/cyanure/cyanure/openblas_64.zip",
"powershell.exe Expand-Archive -Path D:/a/cyanure/cyanure/openblas_64.zip -DestinationPath D:/a/cyanure/cyanure/openblas_64",
]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair -v --add-path=D:\\a\\cyanure\\cyanure\\openblas_64\\bin;D:\\a\\cyanure\\cyanure\\openblas_86\\bin\\ -w {dest_dir} {wheel}"
test-command = ["cd /d {package}",]
# https://github.com/scipy/scipy/issues/16286
build = ["*amd64"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::sklearn.exceptions.ConvergenceWarning"
]