9
9
import zipfile
10
10
import tarfile
11
11
12
- OPENBLAS_V = 'v0 .3.8 '
13
- OPENBLAS_LONG = 'v0.3.5-605-gc815b8fb ' # the 0.3.5 is misleading
12
+ OPENBLAS_V = '0 .3.9 '
13
+ OPENBLAS_LONG = 'v0.3.7-391-gddcbed66 ' # the 0.3.7 is misleading
14
14
BASE_LOC = 'https://anaconda.org/multibuild-wheels-staging/openblas-libs'
15
15
BASEURL = f'{ BASE_LOC } /{ OPENBLAS_LONG } /download'
16
16
ARCHITECTURES = ['' , 'windows' , 'darwin' , 'aarch64' , 'x86' , 'ppc64le' , 's390x' ]
@@ -243,8 +243,11 @@ def test_version(expected_version, ilp64=get_ilp64()):
243
243
get_config .restype = ctypes .c_char_p
244
244
res = get_config ()
245
245
print ('OpenBLAS get_config returned' , str (res ))
246
- check_str = b'OpenBLAS %s' % expected_version [0 ].encode ()
247
- assert check_str in res
246
+ if not expected_version :
247
+ expected_version = OPENBLAS_V
248
+ check_str = b'OpenBLAS %s' % expected_version .encode ()
249
+ print (check_str )
250
+ assert check_str in res , '%s not found in %s' % (expected_version , res )
248
251
if ilp64 :
249
252
assert b"USE64BITINT" in res
250
253
else :
@@ -257,10 +260,10 @@ def test_version(expected_version, ilp64=get_ilp64()):
257
260
'architecture' )
258
261
parser .add_argument ('--test' , nargs = '*' , default = None ,
259
262
help = 'Test different architectures. "all", or any of %s' % ARCHITECTURES )
260
- parser .add_argument ('--check_version' , nargs = 1 , default = None ,
263
+ parser .add_argument ('--check_version' , nargs = '?' , default = '' ,
261
264
help = 'Check provided OpenBLAS version string against available OpenBLAS' )
262
265
args = parser .parse_args ()
263
- if args .check_version is not None :
266
+ if args .check_version != '' :
264
267
test_version (args .check_version )
265
268
elif args .test is None :
266
269
print (setup_openblas ())
0 commit comments