[feature] Add sub command or flag to overwrite directory dist
For now, we can could python package by running the command python -m build. and both tar.gz and whl files would be created and location it to directory dist. but when I change versions of the package and re-run the command python -m build, the old package still exists.
could we add a flag --overwirte, -o to build, if user add this and we would clean the distribute dir first before we output our build result
-o (--outdir) flag already exists.
@q0w It is not about specific the output directory, it is overwrite the exists the output dir
I mean -o flag is used, it should be something else.
yeah, you're right
We can use -ow for --overwrite, but I am a little bit confused if the default dir is dist then it can clean it but if the user has changed the outdir, then do we need to add an optional argument for it or we can manually run a checker to check the build dir and then clean it.
cc. @zhongjiajie @layday
I want to keep the flag as explicit as possible. Instead of --overwrite it should be --delete-outdir-before-build (no short form) 👍
We can use
-owfor--overwrite, but I am a little bit confused if the default dir isdistthen it can clean it but if the user has changed the outdir, then do we need to add an optional argument for it or we can manually run a checker to check the build dir and then clean it.cc. @zhongjiajie @layday
I think we should delete the user custom dir if they config it
@layday to avoid any further confusion, it might be best to close this issue for now.
We couldn't agree that this is desirable, closing for now.