57
57
PATH = {k : ':' .join (PATH_DIRS ).format (devtoolset = v )
58
58
for k , v in DEVTOOLSET .items ()}
59
59
WHEEL_CACHE_FOLDER = op .expanduser ('~/.cache/auditwheel_tests' )
60
- ORIGINAL_NUMPY_WHEEL = f'numpy-1.16.5-{ PYTHON_ABI } -linux_{ PLATFORM } .whl'
60
+ NUMPY_VERSION = '1.19.2'
61
+ ORIGINAL_NUMPY_WHEEL = f'numpy-{ NUMPY_VERSION } -{ PYTHON_ABI } -linux_{ PLATFORM } .whl'
61
62
ORIGINAL_SIX_WHEEL = 'six-1.11.0-py2.py3-none-any.whl'
62
63
63
64
@@ -202,8 +203,10 @@ def test_build_repair_numpy(any_manylinux_container, docker_python, io_folder):
202
203
# and put the result in the cache folder to speed-up future build.
203
204
# This part of the build is independent of the auditwheel code-base
204
205
# so it's safe to put it in cache.
205
- docker_exec (manylinux_ctr ,
206
- 'pip wheel -w /io --no-binary=:all: numpy==1.16.5' )
206
+ docker_exec (
207
+ manylinux_ctr ,
208
+ f'pip wheel -w /io --no-binary=:all: numpy=={ NUMPY_VERSION } '
209
+ )
207
210
os .makedirs (op .join (WHEEL_CACHE_FOLDER , policy ), exist_ok = True )
208
211
shutil .copy2 (op .join (io_folder , ORIGINAL_NUMPY_WHEEL ),
209
212
op .join (WHEEL_CACHE_FOLDER , policy , ORIGINAL_NUMPY_WHEEL ))
@@ -219,11 +222,13 @@ def test_build_repair_numpy(any_manylinux_container, docker_python, io_folder):
219
222
220
223
assert len (filenames ) == 2
221
224
repaired_wheels = [fn for fn in filenames if 'manylinux' in fn ]
222
- assert repaired_wheels == [f'numpy-1.16.5-{ PYTHON_ABI } -{ policy } .whl' ]
225
+ assert repaired_wheels == [
226
+ f'numpy-{ NUMPY_VERSION } -{ PYTHON_ABI } -{ policy } .whl'
227
+ ]
223
228
repaired_wheel = repaired_wheels [0 ]
224
229
output = docker_exec (manylinux_ctr , 'auditwheel show /io/' + repaired_wheel )
225
230
assert (
226
- f'numpy-1.16.5 -{ PYTHON_ABI } -{ policy } .whl is consistent'
231
+ f'numpy-{ NUMPY_VERSION } -{ PYTHON_ABI } -{ policy } .whl is consistent'
227
232
f' with the following platform tag: "{ policy } "'
228
233
) in output .replace ('\n ' , ' ' )
229
234
0 commit comments