How could I make my setup.py
pre-delete and post-delete the build directory?
In the Project tool window, right-click a project or directory, where Python compiled files should be deleted from. From the context menu, choose Clean Python compiled files. The . pyc and $py.
install_requires is a section within the setup.py file in which you need to input a list of the minimum dependencies needed for a project to run correctly on the target operating system (such as ubuntu). When pip runs setup.py, it will install all of the dependencies listed in install_requires.
(assuming you haven't specified any sdist options in the setup script or config file), sdist creates the archive of the default format for the current platform. The default format is a gzip'ed tar file ( . tar. gz ) on Unix, and ZIP file on Windows.
To install a package that includes a setup.py file, open a command or terminal window and: cd into the root directory where setup.py is located. Enter: python setup.py install.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With