Distributing Python Modules
Authors: | Greg Ward, Anthony Baxter |
---|---|
Email: | distutils-sig@python.org |
Release: | 2.7 |
Date: | July 04, 2010 |
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.
- 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. Registering with the Package Index
- 7. Uploading Packages to the Package Index
- 8. Examples
- 9. Extending Distutils
- 10. Command Reference
- 11. API Reference
- 11.1. distutils.core — Core Distutils functionality
- 11.2. distutils.ccompiler — CCompiler base class
- 11.3. distutils.unixccompiler — Unix C Compiler
- 11.4. distutils.msvccompiler — Microsoft Compiler
- 11.5. distutils.bcppcompiler — Borland Compiler
- 11.6. distutils.cygwincompiler — Cygwin Compiler
- 11.7. distutils.emxccompiler — OS/2 EMX Compiler
- 11.8. distutils.archive_util — Archiving utilities
- 11.9. distutils.dep_util — Dependency checking
- 11.10. distutils.dir_util — Directory tree operations
- 11.11. distutils.file_util — Single file operations
- 11.12. distutils.util — Miscellaneous other utility functions
- 11.13. distutils.dist — The Distribution class
- 11.14. distutils.extension — The Extension class
- 11.15. distutils.debug — Distutils debug mode
- 11.16. distutils.errors — Distutils exceptions
- 11.17. distutils.fancy_getopt — Wrapper around the standard getopt module
- 11.18. distutils.filelist — The FileList class
- 11.19. distutils.log — Simple PEP 282-style logging
- 11.20. distutils.spawn — Spawn a sub-process
- 11.21. distutils.sysconfig — System configuration information
- 11.22. distutils.text_file — The TextFile class
- 11.23. distutils.version — Version number classes
- 11.24. distutils.cmd — Abstract base class for Distutils commands
- 11.25. distutils.command — Individual Distutils commands
- 11.26. distutils.command.bdist — Build a binary installer
- 11.27. distutils.command.bdist_packager — Abstract base class for packagers
- 11.28. distutils.command.bdist_dumb — Build a “dumb” installer
- 11.29. distutils.command.bdist_msi — Build a Microsoft Installer binary package
- 11.30. distutils.command.bdist_rpm — Build a binary distribution as a Redhat RPM and SRPM
- 11.31. distutils.command.bdist_wininst — Build a Windows installer
- 11.32. distutils.command.sdist — Build a source distribution
- 11.33. distutils.command.build — Build all files of a package
- 11.34. distutils.command.build_clib — Build any C libraries in a package
- 11.35. distutils.command.build_ext — Build any extensions in a package
- 11.36. distutils.command.build_py — Build the .py/.pyc files of a package
- 11.37. distutils.command.build_scripts — Build the scripts of a package
- 11.38. distutils.command.clean — Clean a package build area
- 11.39. distutils.command.config — Perform package configuration
- 11.40. distutils.command.install — Install a package
- 11.41. distutils.command.install_data — Install data files from a package
- 11.42. distutils.command.install_headers — Install C/C++ header files from a package
- 11.43. distutils.command.install_lib — Install library files from a package
- 11.44. distutils.command.install_scripts — Install script files from a package
- 11.45. distutils.command.register — Register a module with the Python Package Index
- 11.46. Creating a new Distutils command