|
87 | 87 | }
|
88 | 88 | NUMPY_VERSION = NUMPY_VERSION_MAP[PYTHON_ABI_MAJ_MIN]
|
89 | 89 | ORIGINAL_NUMPY_WHEEL = f"numpy-{NUMPY_VERSION}-{PYTHON_ABI}-linux_{PLATFORM}.whl"
|
90 |
| -ORIGINAL_SIX_WHEEL = "six-1.11.0-py2.py3-none-any.whl" |
91 | 90 | SHOW_RE = re.compile(
|
92 | 91 | r'[\s](?P<wheel>\S+) is consistent with the following platform tag: "(?P<tag>\S+)"',
|
93 | 92 | flags=re.DOTALL,
|
@@ -321,7 +320,7 @@ def test_repair_exclude(self, any_manylinux_container, io_folder):
|
321 | 320 | build_cmd = (
|
322 | 321 | f"cd {test_path} && "
|
323 | 322 | "if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
|
324 |
| - "python setup.py bdist_wheel -d /io" |
| 323 | + "python -m pip wheel --no-deps -w /io ." |
325 | 324 | )
|
326 | 325 | docker_exec(manylinux_ctr, ["bash", "-c", build_cmd])
|
327 | 326 | filenames = os.listdir(io_folder)
|
@@ -426,23 +425,13 @@ def test_build_wheel_with_binary_executable(
|
426 | 425 | def test_build_repair_pure_wheel(self, any_manylinux_container, io_folder):
|
427 | 426 | policy, tag, manylinux_ctr = any_manylinux_container
|
428 | 427 |
|
429 |
| - if op.exists(op.join(WHEEL_CACHE_FOLDER, policy, ORIGINAL_SIX_WHEEL)): |
430 |
| - # If six has already been built and put in cache, let's reuse this. |
431 |
| - shutil.copy2( |
432 |
| - op.join(WHEEL_CACHE_FOLDER, policy, ORIGINAL_SIX_WHEEL), |
433 |
| - op.join(io_folder, ORIGINAL_SIX_WHEEL), |
434 |
| - ) |
435 |
| - logger.info(f"Copied six wheel from {WHEEL_CACHE_FOLDER} to {io_folder}") |
436 |
| - else: |
437 |
| - docker_exec(manylinux_ctr, "pip wheel -w /io --no-binary=:all: six==1.11.0") |
438 |
| - os.makedirs(op.join(WHEEL_CACHE_FOLDER, policy), exist_ok=True) |
439 |
| - shutil.copy2( |
440 |
| - op.join(io_folder, ORIGINAL_SIX_WHEEL), |
441 |
| - op.join(WHEEL_CACHE_FOLDER, policy, ORIGINAL_SIX_WHEEL), |
442 |
| - ) |
| 428 | + docker_exec( |
| 429 | + manylinux_ctr, |
| 430 | + "pip download --no-deps -d /io --only-binary=:all: six==1.16.0", |
| 431 | + ) |
443 | 432 |
|
444 | 433 | filenames = os.listdir(io_folder)
|
445 |
| - assert filenames == [ORIGINAL_SIX_WHEEL] |
| 434 | + assert filenames == ["six-1.16.0-py2.py3-none-any.whl"] |
446 | 435 | orig_wheel = filenames[0]
|
447 | 436 | assert "manylinux" not in orig_wheel
|
448 | 437 |
|
@@ -477,7 +466,7 @@ def test_build_wheel_depending_on_library_with_rpath(
|
477 | 466 | (
|
478 | 467 | "cd /auditwheel_src/tests/integration/testrpath &&"
|
479 | 468 | "if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
|
480 |
| - f"DTAG={dtag} python setup.py bdist_wheel -d /io" |
| 469 | + f"DTAG={dtag} python -m pip wheel --no-deps -w /io ." |
481 | 470 | ),
|
482 | 471 | ],
|
483 | 472 | )
|
@@ -860,15 +849,17 @@ def test_build_wheel_with_image_dependencies(
|
860 | 849 | # tested.
|
861 | 850 |
|
862 | 851 | policy, tag, manylinux_ctr = any_manylinux_container
|
863 |
| - |
| 852 | + build_command = ( |
| 853 | + "cd /auditwheel_src/tests/integration/testdependencies && " |
| 854 | + "if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && " |
| 855 | + f"WITH_DEPENDENCY={with_dependency} python -m pip wheel --no-deps -w /io ." |
| 856 | + ) |
864 | 857 | docker_exec(
|
865 | 858 | manylinux_ctr,
|
866 | 859 | [
|
867 | 860 | "bash",
|
868 | 861 | "-c",
|
869 |
| - "cd /auditwheel_src/tests/integration/testdependencies && " |
870 |
| - f"WITH_DEPENDENCY={with_dependency} python setup.py -v build_ext -f " |
871 |
| - "bdist_wheel -d /io", |
| 862 | + build_command, |
872 | 863 | ],
|
873 | 864 | )
|
874 | 865 |
|
|
0 commit comments