pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.34k stars 1.14k forks source link

Fix `setuptools_wheel` fixture #4308

Closed abravalheri closed 3 weeks ago

abravalheri commented 1 month ago

Summary of changes

Based on the test introduced in https://github.com/pypa/setuptools/commit/b4d3e83f0764e0c38ed57d688c301624ef08d1ea, we can see that when none of PRE_BUILT_SETUPTOOLS_SDIST or PRE_BUILT_SETUPTOOLS_WHEEL is set, the setuptools_wheel fixture keeps recursively creating build/lib/build/lib/... directories which slows down the tests and creates a huge amount of unnecessary files.

This change tries to avoid that by building simultaneously sdist/wheel.

Closes

Pull Request Checklist

[PR docs]: https://setuptools.pypa.io/en/latest/development/developer-guide.html#making-a-pull-request