Distributing Python Modules (Legacy version)ΒΆ
| Authors: | Greg Ward, Anthony Baxter |
|---|---|
| Email: | distutils-sig@python.org |
See also
- Distributing Python Modules
- The up to date module distribution documentations
This document describes the Python Distribution Utilities (βDistutilsβ) from the module developerβs point of view, describing how to use the Distutils to make Python modules and extensions easily available to a wider audience with very little overhead for build/release/install mechanics.
Note
This guide only covers the basic tools for building and distributing extensions that are provided as part of this version of Python. Third party tools offer easier to use and more secure alternatives. Refer to the quick recommendations section in the Python Packaging User Guide for more information.
- 1. An Introduction to Distutils
- 2. Writing the Setup Script
- 3. Writing the Setup Configuration File
- 4. Creating a Source Distribution
- 5. Creating Built Distributions
- 6. The Python Package Index (PyPI)
- 7. Examples
- 8. Extending Distutils
- 9. Command Reference
- 10. API Reference
- 10.1.
distutils.coreβ Core Distutils functionality - 10.2.
distutils.ccompilerβ CCompiler base class - 10.3.
distutils.unixccompilerβ Unix C Compiler - 10.4.
distutils.msvccompilerβ Microsoft Compiler - 10.5.
distutils.bcppcompilerβ Borland Compiler - 10.6.
distutils.cygwincompilerβ Cygwin Compiler - 10.7.
distutils.emxccompilerβ OS/2 EMX Compiler - 10.8.
distutils.archive_utilβ Archiving utilities - 10.9.
distutils.dep_utilβ Dependency checking - 10.10.
distutils.dir_utilβ Directory tree operations - 10.11.
distutils.file_utilβ Single file operations - 10.12.
distutils.utilβ Miscellaneous other utility functions - 10.13.
distutils.distβ The Distribution class - 10.14.
distutils.extensionβ The Extension class - 10.15.
distutils.debugβ Distutils debug mode - 10.16.
distutils.errorsβ Distutils exceptions - 10.17.
distutils.fancy_getoptβ Wrapper around the standard getopt module - 10.18.
distutils.filelistβ The FileList class - 10.19.
distutils.logβ Simple PEP 282-style logging - 10.20.
distutils.spawnβ Spawn a sub-process - 10.21.
distutils.sysconfigβ System configuration information - 10.22.
distutils.text_fileβ The TextFile class - 10.23.
distutils.versionβ Version number classes - 10.24.
distutils.cmdβ Abstract base class for Distutils commands - 10.25. Creating a new Distutils command
- 10.26.
distutils.commandβ Individual Distutils commands - 10.27.
distutils.command.bdistβ Build a binary installer - 10.28.
distutils.command.bdist_packagerβ Abstract base class for packagers - 10.29.
distutils.command.bdist_dumbβ Build a βdumbβ installer - 10.30.
distutils.command.bdist_msiβ Build a Microsoft Installer binary package - 10.31.
distutils.command.bdist_rpmβ Build a binary distribution as a Redhat RPM and SRPM - 10.32.
distutils.command.bdist_wininstβ Build a Windows installer - 10.33.
distutils.command.sdistβ Build a source distribution - 10.34.
distutils.command.buildβ Build all files of a package - 10.35.
distutils.command.build_clibβ Build any C libraries in a package - 10.36.
distutils.command.build_extβ Build any extensions in a package - 10.37.
distutils.command.build_pyβ Build the .py/.pyc files of a package - 10.38.
distutils.command.build_scriptsβ Build the scripts of a package - 10.39.
distutils.command.cleanβ Clean a package build area - 10.40.
distutils.command.configβ Perform package configuration - 10.41.
distutils.command.installβ Install a package - 10.42.
distutils.command.install_dataβ Install data files from a package - 10.43.
distutils.command.install_headersβ Install C/C++ header files from a package - 10.44.
distutils.command.install_libβ Install library files from a package - 10.45.
distutils.command.install_scriptsβ Install script files from a package - 10.46.
distutils.command.registerβ Register a module with the Python Package Index - 10.47.
distutils.command.checkβ Check the meta-data of a package
- 10.1.
