There's a closed pull request on the void-packages repository common/build-style/python3-pep517.sh: ignore tests in temp destdir https://github.com/void-linux/void-packages/pull/43946 Description: #### Testing the changes - I tested the changes in this PR: **YES** An edge case I came across today. On rare cases, packages include tests in their built wheel. While testing with these wheels extracted in a temporary directory, it conflicts with the tests in the source tree as pytest cannot run testfiless with same name in different directories (ref: https://github.com/pytest-dev/pytest/issues/3151). See [this run](https://github.com/void-linux/void-packages/actions/runs/5021644643/jobs/9004230165) as an example. The same package passes checks correctly in this PR.