@@ -8,30 +8,18 @@ requires = [
8
8
]
9
9
10
10
[tool .cibuildwheel ]
11
- # To make sure that the library is built for the right arch (i686, amd64 etc)
12
- # then the host arch is added onto the build dir. This *must* be expanded by
13
- # cibuildwheel since the build host (runner) might be different than the target
14
- # emulated by the docker image. Ideally there would be a variable that holds
15
- # what's currently being compiled, but I've yet to find it.
16
- #
17
- # Since the command is issued through subprocess.run() then it runs on the
18
- # system native shell, which means all sorts of problems if that shell is
19
- # cmd.exe, since it doesn't understand substitution $(). On windows you change
20
- # the default shell by setting COMSPEC to either bash or powershell (or
21
- # something else that understands $()), but there is little to gain from
22
- # running cibuildwheel on a non-CI windows.
23
11
before-build = [
24
12
""" cmake \
25
13
-S . \
26
- -B "cibw-$(python -c 'import platform;print(platform.machine())')/" \
14
+ -B build \
27
15
-DCMAKE_BUILD_TYPE=Release \
28
16
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
29
17
-DBUILD_TESTING=OFF \
30
18
-DBUILD_PYTHON=OFF \
31
19
-DBUILD_BIN=OFF \
32
20
""" ,
33
21
""" cmake \
34
- --build "cibw-$(python -c 'import platform;print(platform.machine())')/" \
22
+ --build build \
35
23
--parallel \
36
24
--target install \
37
25
--config Release \
@@ -69,5 +57,9 @@ test-command = [
69
57
[tool .cibuildwheel .linux ]
70
58
manylinux-x86_64-image = " manylinux2010"
71
59
60
+ [[tool .cibuildwheel .overrides ]]
61
+ select = " cp311*"
62
+ manylinux-x86_64-image = " manylinux2014"
63
+
72
64
[tool .cibuildwheel .macos ]
73
65
environment = { CXXFLAGS =" -L/usr/local/lib" }
0 commit comments