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

[Docs] distutils.command.clean → ? #4034

Open
1 task done
rinarakaki opened this issue Aug 30, 2023 · 1 comment
Open
1 task done

[Docs] distutils.command.clean → ? #4034

rinarakaki opened this issue Aug 30, 2023 · 1 comment
Labels
documentation Needs Triage Issues that need to be evaluated for severity and status.

Comments

@rinarakaki
Copy link

Summary

https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html

I was reading the setuptools documentation and couldn’t find the mapping of distutils’ clean command to the setuptools equivalent.

I know that setuptools to some extent cleanup the build output after each build process but want it to clearly state that if we can already don’t have to mind the cleanup process, or how to maintain the same behaviours with setuptools for those trying to migrate from distutils.

OS / Environment

No response

Additional Information

Code of Conduct

  • I agree to follow the PSF Code of Conduct
@rinarakaki rinarakaki added documentation Needs Triage Issues that need to be evaluated for severity and status. labels Aug 30, 2023
@abravalheri
Copy link
Contributor

abravalheri commented Aug 30, 2023

For the time being there is no equivalent.
Setuptools long term plan (so far) is to not provide any CLI tool, just API.

If you use python -m build to build your project, I believe no binary files from extensions are produced by the build in the CWD, so you can easily cleanup by doing:

rm -rf dist *.egg-info

(If you use the src-layout replace *.egg-info with src/*.egg-info in the previous command).

jollaitbot pushed a commit to sailfishos-mirror/m2crypto that referenced this issue Sep 26, 2023
See gh#pypa/setuptools#4034 and gh#pypa/setuptools!4062, the
world after The Fall is totally depraved and hates stable simple
solutions.

Replaces: !298
bdrung added a commit to bdrung/bdebstrap that referenced this issue Mar 1, 2024
Setuptools does not provide a clean command (see
pypa/setuptools#4034). So let the clean
commands inherit directly from `Command`.

Signed-off-by: Benjamin Drung <bdrung@posteo.de>
bdrung added a commit to bdrung/bdebstrap that referenced this issue Mar 1, 2024
Setuptools does not provide a clean command (see
pypa/setuptools#4034). So let the clean
commands inherit directly from `Command`.

Signed-off-by: Benjamin Drung <bdrung@posteo.de>
bdrung added a commit to bdrung/bdebstrap that referenced this issue Mar 1, 2024
Setuptools does not provide a clean command (see
pypa/setuptools#4034). So let the clean
commands inherit directly from `Command`.

Signed-off-by: Benjamin Drung <bdrung@posteo.de>
hswong3i pushed a commit to alvistack/launchpad-python-distutils-extra that referenced this issue Apr 16, 2024
Setuptools does not provide a clean command (see
pypa/setuptools#4034). So let the clean
commands inherit directly from `Command`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Needs Triage Issues that need to be evaluated for severity and status.
Projects
None yet
Development

No branches or pull requests

2 participants