Skip to main content
https://travis-ci.org/farzadghanei/distutilazy.svg?branch=master

Extra distutils commands, including:

  • clean_pyc: clean compiled python files

  • clean_all: using distutils.clean and clean_pyc to clean all temporary files

  • bdist_pyinstaller: convenient calls for PyInstaller with sane defaults

  • test: run unit tests

How

Make sure distutilazy package is in sys.path, then add distutilazy.command package to the list of command packages in your setup.cfg file.

[global]
command_packages = distutilazy.command

That’s it. now you may use new commands directly from your setup.py:

To clean compiled python files from the project:

$ python setup.py clean_pyc

To run unit tests (by default runs tests/test*.py files):

$ python setup.py test

Available commands are in distutilazy.command package as separate modules.

A more detailed way is to use command classes, defined in distutilazy package modules. Each module might define more than a single command class.

The modules should be imported in setup.py, then desired classes might be assigned to command names using the cmdclass parameter.

import distutilazy.clean

setup(
    cmdclass: {'clean_pyc': distutilazy.clean.clean_pyc}
)

License

Distutilazy is released under the terms of MIT license.

Metadata

Release files for distutilazy 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for distutilazy 0.3.2
File Size Uploaded
distutilazy-0.3.2.tar.gz 10.6 kB Details

Release files / distutilazy-0.3.2.tar.gz

Download URL distutilazy-0.3.2.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
29029d161531fcb03228b7dfc96388e1d20e44bca40093b895d5008140bda681
BLAKE2b-256 checksum
How to use checksums
67fd37c83031895e1059903733b092916b683d3785d8795898a109446123b5d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.5.1

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.2 This release

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page