Cleaning build directory in setup.py

Ram Rachum picture Ram Rachum · Oct 20, 2009 · Viewed 51.6k times · Source

How could I make my setup.py pre-delete and post-delete the build directory?

Answer

Matt Ball picture Matt Ball · Oct 20, 2009

Does this answer it? IIRC, you'll need to use the --all flag to get rid of stuff outside of build/lib:

python setup.py clean --all