Package: distutilazy
Extra distutils commands, including:clean_pyc: clean compiled python filesclean_jython_class: clean compiled .class files created by Jythonclean_all: usingdistutils.clean,clean_pycandclean_jython_classto clean all temporary filesbdist_pyinstaller: convenient calls forPyInstallerwith sane defaultstest: run unit testsAn entry point script is also provided to call commands directly, currently only
the clean commands are exposed via the script.InstallationUsepipto install from PyPI:$pipinstalldistutilazyTo install from the source, download the source and run$pythonsetup.pyinstallThere are no specific dependencies, distutilazy runs on Python 2.7+
(CPython 2.7, 3.3, 3.4, 3.5, 3.6, PyPy 2.6 and PyPy3.5 are tested).
Tests pass on Jython so it should be fine for Jython as well.HowAfter installing distutilazy, adddistutilazy.commandpackage to the list
of command packages in yoursetup.cfgfile.[global]command_packages=distutilazy.commandThat’s it. Now you may use new commands directly from yoursetup.py.To clean compiled python files:$pythonsetup.pyclean_pycTo clean all temporary files (build artifacts, compiled files created by CPython or Jython, etc.):$pythonsetup.pyclean_allAvailable commands are indistutilazy.commandpackage, each command as a separate module.To use custom command names for the same functionality, use command classes defined in distutilazy modules
(each module might define more than a single command class).The modules should be imported insetup.py, then desired classes might be assigned to command names
using thecmdclassparameter.import distutilazy.clean

setup(
    cmdclass: {
        'clean_pyc': distutilazy.clean.CleanPyc,
        'clean_jython': distutilazy.clean.CleanJythonClass,
        'clear': distutilazy.clean.CleanAll
    }
)To extend (or customize) the behavior of the command classes define a class extending from these command classes,
and use that custom class incmdclass.Entry Point ScriptThedistutilazyscript provides a direct access to the commands. call it with-hor–helpto see available commands. For example this command runs
theclean_allcommand (provided by distutilazy package) directly, even
without asetup.pyorsetup.cfg.$distutilazyclean_allDevelopmentCode is hosted onGitHub.Documentations are onRead The Docs.TestsIf you have make available$maketestYou can always usesetup.pyto run tests:$pythonsetup.pytestLicenseDistutilazy is released under the terms ofMIT license.The MIT License (MIT)Copyright (c) 2014-2018 Farzad GhaneiPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.