File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def readme():
22
22
23
23
def get_version ():
24
24
file_path = os .path .join (pwd , version_file )
25
- pattern = re .compile (r"\s*__version__\s*=\s*'(\d+\.\d+\.\d +)'" )
25
+ pattern = re .compile (r"\s*__version__\s*=\s*'([0-9A-Za-z.-] +)'" )
26
26
with open (file_path , 'r' ) as f :
27
27
for line in f :
28
28
m = pattern .match (line )
@@ -138,6 +138,7 @@ def gen_packages_items():
138
138
'-DCALL_FROM_SETUP_PY:BOOL=ON' ,
139
139
'-DBUILD_SHARED_LIBS:BOOL=OFF' ,
140
140
# Select the bindings implementation
141
+ '-DCMAKE_BUILD_TYPE=' + os .getenv ('CMAKE_BUILD_TYPE' , 'RelWithDebInfo' ),
141
142
'-DBUILD_PY_FFI=ON' ,
142
143
'-DBUILD_MULTI_GPU=' + ('OFF' if os .name == 'nt' else 'ON' ),
143
144
'-DUSE_NVTX=' + ('OFF' if os .name == 'nt' else 'ON' ),
You can’t perform that action at this time.
0 commit comments