Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clean before build in test_manylinux #347

Merged
merged 1 commit into from
Nov 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions tests/integration/test_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ def test_build_wheel_with_binary_executable(
"bash",
"-c",
"cd /auditwheel_src/tests/integration/testpackage && "
"if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
"python -m pip wheel --no-deps -w /io .",
],
)
Expand Down Expand Up @@ -393,9 +394,9 @@ def test_build_wheel_depending_on_library_with_rpath(
"bash",
"-c",
(
"cd /auditwheel_src/tests/integration/testrpath "
"&& rm -rf build "
f"&& DTAG={dtag} python setup.py bdist_wheel -d /io"
"cd /auditwheel_src/tests/integration/testrpath &&"
"if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
f"DTAG={dtag} python setup.py bdist_wheel -d /io"
),
],
)
Expand Down Expand Up @@ -477,9 +478,10 @@ def test_build_repair_multiple_top_level_modules_wheel(
[
"bash",
"-c",
"cd /auditwheel_src/tests/integration/multiple_top_level "
"&& make clean all "
"&& pip wheel . -w /io",
"cd /auditwheel_src/tests/integration/multiple_top_level && "
"if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
"make clean all && "
"pip wheel . -w /io",
],
)

Expand Down Expand Up @@ -545,10 +547,11 @@ def test_build_repair_wheel_with_internal_rpath(
[
"bash",
"-c",
"cd /auditwheel_src/tests/integration/internal_rpath "
"&& make clean all "
"&& mv lib-src/a/liba.so internal_rpath "
"&& pip wheel . -w /io",
"cd /auditwheel_src/tests/integration/internal_rpath && "
"if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
"make clean all && "
"mv lib-src/a/liba.so internal_rpath && "
"pip wheel . -w /io",
],
)

Expand Down Expand Up @@ -608,8 +611,9 @@ def test_strip_wheel(self, any_manylinux_container, docker_python, io_folder):
[
"bash",
"-c",
"cd /auditwheel_src/tests/integration/sample_extension "
"&& python -m pip wheel --no-deps -w /io .",
"cd /auditwheel_src/tests/integration/sample_extension && "
"if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
"python -m pip wheel --no-deps -w /io .",
],
)

Expand Down Expand Up @@ -644,8 +648,9 @@ def test_nonpy_rpath(self, any_manylinux_container, docker_python, io_folder):
[
"bash",
"-c",
"cd /auditwheel_src/tests/integration/nonpy_rpath "
"&& python -m pip wheel --no-deps -w /io .",
"cd /auditwheel_src/tests/integration/nonpy_rpath && "
"if [ -d ./build ]; then rm -rf ./build ./*.egg-info; fi && "
"python -m pip wheel --no-deps -w /io .",
],
)

Expand Down