Distributing Python Modules (Legacy version)¶
- Autorzy
Greg Ward, Anthony Baxter
Zobacz także
- Dystrybucja modułów Pythona
The up to date module distribution documentations
Informacja
The entire distutils
package has been deprecated and will be
removed in Python 3.12. This documentation is retained as a
reference only, and will be removed with the package. See the
What’s New entry for more information.
Informacja
Ten dokument jest przechowywany wyłącznie do czasu, gdy dokumentacja setuptools
pod adresem https://setuptools.readthedocs.io/en/latest/setuptools.html niezależnie obejmie wszystkie istotne informacje, które są tutaj zawarte.
Informacja
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.
This document describes the Python Distribution Utilities („Distutils”) from
the module developer’s point of view, describing the underlying capabilities
that setuptools
builds on to allow Python developers to make Python modules
and extensions readily available to a wider audience.
- 1. Wprowadzenie do Distutils
- 2. Pisanie Skryptu Instalacyjnego
- 2.1. Tworzenie list całych pakietów
- 2.2. Tworzenie list pojedynczych modułów
- 2.3. Opisywanie modułów rozszerzających
- 2.4. Relacje pomiędzy dystrybucją a pakietami
- 2.5. Instalowanie skryptów
- 2.6. Instalowanie danych pakietu
- 2.7. Instalowanie dodatkowych plików
- 2.8. Dodatkowe dane o danych
- 2.9. Odpluskwianie skryptu instalacyjnego
- 3. Pisanie pliku konfiguracyjnego instalacji
- 4. Tworzenie dystrybucji źródłowej
- 5. Tworzenie Zbudowanych Dystrybucji
- 6. Distutils Examples
- 7. Extending Distutils
- 8. Podręcznik poleceń
- 9. API Reference
- 9.1.
distutils.core
— Core Distutils functionality - 9.2.
distutils.ccompiler
— CCompiler base class - 9.3.
distutils.unixccompiler
— Unix C Compiler - 9.4.
distutils.msvccompiler
— Microsoft Compiler - 9.5.
distutils.bcppcompiler
— Borland Compiler - 9.6.
distutils.cygwincompiler
— Cygwin Compiler - 9.7.
distutils.archive_util
— Archiving utilities - 9.8.
distutils.dep_util
— Dependency checking - 9.9.
distutils.dir_util
— Directory tree operations - 9.10.
distutils.file_util
— Single file operations - 9.11.
distutils.util
— Miscellaneous other utility functions - 9.12.
distutils.dist
— The Distribution class - 9.13.
distutils.extension
— The Extension class - 9.14.
distutils.debug
— Distutils debug mode - 9.15.
distutils.errors
— Distutils exceptions - 9.16.
distutils.fancy_getopt
— Wrapper around the standard getopt module - 9.17.
distutils.filelist
— The FileList class - 9.18.
distutils.log
— Simple PEP 282-style logging - 9.19.
distutils.spawn
— Spawn a sub-process - 9.20.
distutils.sysconfig
— System configuration information - 9.21.
distutils.text_file
— The TextFile class - 9.22.
distutils.version
— Version number classes - 9.23.
distutils.cmd
— Abstract base class for Distutils commands - 9.24. Creating a new Distutils command
- 9.25.
distutils.command
— Individual Distutils commands - 9.26.
distutils.command.bdist
— Build a binary installer - 9.27.
distutils.command.bdist_packager
— Abstract base class for packagers - 9.28.
distutils.command.bdist_dumb
— Build a „dumb” installer - 9.29.
distutils.command.bdist_msi
— Build a Microsoft Installer binary package - 9.30.
distutils.command.bdist_rpm
— Build a binary distribution as a Redhat RPM and SRPM - 9.31.
distutils.command.sdist
— Build a source distribution - 9.32.
distutils.command.build
— Build all files of a package - 9.33.
distutils.command.build_clib
— Build any C libraries in a package - 9.34.
distutils.command.build_ext
— Build any extensions in a package - 9.35.
distutils.command.build_py
— Build the .py/.pyc files of a package - 9.36.
distutils.command.build_scripts
— Build the scripts of a package - 9.37.
distutils.command.clean
— Clean a package build area - 9.38.
distutils.command.config
— Perform package configuration - 9.39.
distutils.command.install
— Install a package - 9.40.
distutils.command.install_data
— Install data files from a package - 9.41.
distutils.command.install_headers
— Install C/C++ header files from a package - 9.42.
distutils.command.install_lib
— Install library files from a package - 9.43.
distutils.command.install_scripts
— Install script files from a package - 9.44.
distutils.command.register
— Register a module with the Python Package Index - 9.45.
distutils.command.check
— Check the meta-data of a package
- 9.1.