File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ jobs:
28
28
uses : ssrobins/install-cmake@v1
29
29
30
30
- name : Build wheels
31
- uses : pypa/cibuildwheel@v2.16.5
31
+ uses : pypa/cibuildwheel@v2.19.1
32
32
# to supply options, put them in 'env', like:
33
33
env :
34
- CIBW_BEFORE_BUILD : git submodule init && git submodule update && pip install cython oldest-supported- numpy scikit-build
34
+ CIBW_BEFORE_BUILD : git submodule init && git submodule update && pip install cython numpy scikit-build
35
35
CPPFLAGS : -I/usr/local/opt/zlib/include
36
36
LDFLAGS : -L/usr/local/opt/zlib/lib
37
37
CIBW_ARCHS_MACOS : " x86_64 arm64"
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ requires = [
3
3
" setuptools" ,
4
4
" scikit-build >= 0.9.0" ,
5
5
" wheel" ,
6
- " oldest-supported- numpy"
6
+ " numpy"
7
7
]
Original file line number Diff line number Diff line change 8
8
from skbuild .exceptions import SKBuildError
9
9
from skbuild .cmaker import get_cmake_version
10
10
11
- import numpy as np
12
11
import multiprocessing as mp
13
12
13
+ class NumpyImport :
14
+ def __repr__ (self ):
15
+ import numpy as np
16
+
17
+ return np .get_include ()
18
+
19
+ __fspath__ = __repr__
20
+
21
+
14
22
if not "CMAKE_BUILD_PARALLEL_LEVEL" in os .environ :
15
23
os .environ ["CMAKE_BUILD_PARALLEL_LEVEL" ] = str (mp .cpu_count ())
16
24
@@ -90,7 +98,7 @@ def read(fname):
90
98
depends = [ os .path .join (src_dir , 'DracoPy.h' ) ],
91
99
language = 'c++' ,
92
100
include_dirs = [
93
- np . get_include ( ),
101
+ str ( NumpyImport () ),
94
102
os .path .join (CMAKE_INSTALL_DIR (), 'include/' ),
95
103
],
96
104
extra_compile_args = extra_compile_args ,
You can’t perform that action at this time.
0 commit comments