setuptools pyproject.toml equivalent to `python setup.py clean --all`

Viewed 312

I'm migrating from setup.py to pyproject.toml. The commands to install my package appear to be the same, but I can't find what the pyproject.toml command for cleaning up build artifacts is. What is the equivalent to python setup.py clean --all?

1 Answers

The distutils command clean is not needed for a pyproject.toml based build. Modern tools invoking PEP517/PEP518 hooks, such as build, create a temporary directory or a cache directory to store intermediate files while building, rather than littering the project directory with a build subdirectory.

Anyway, it was not really an exciting command in the first place and rm -rf build does the same job.

Related