![]() ![]() It is hoped that a class of intermediaries, called packagers, will arise to address this need. Not all module developers have access to a multitude of platforms, so it’s not always feasible to expect them to create a multitude of built distributions. (optional) create one or more built (binary) distributions Each of these tasks is covered in this document. ![]() (optional) write a setup configuration file.write a setup script ( setup.py by convention).As a developer, your responsibilities (apart from writing solid, well-documented and well-tested code, of course!) are: 1.1 Concepts & Terminology Using the Distutils is quite simple, both for module developers and for users/administrators installing third-party modules. ![]() 62 iiĬHAPTER ONE AN INTRODUCTION TO DISTUTILS This document covers using the Distutils to distribute your Python modules, concentrating on the role of devel- oper/distributor: if you’re looking for information on installing Python modules, you should refer to the Installing Python Modules (in Installing Python Modules ) chapter. 62 11.45 _scripts - Install script files from a package. 62 11.44 _lib - Install library files from a package. 62 11.43 _headers - Install C/C++ header files from a package. 62 11.42 _data - Install data files from a package. 62 11.40 - Perform package configuration. 62 11.38 _scripts - Build the scripts of a package. 62 11.36 _ext - Build any extensions in a package. 62 11.35 _clib - Build any C libraries in a package. 62 11.34 - Build all files of a package. 62 11.32 _wininst - Build a Windows installer. 60 11.31 _rpm - Build a binary distribution as a Redhat RPM and SRPM. 60 11.30 _msi - Build a Microsoft Installer binary package. 60 11.29 _dumb - Build a “dumb” installer. 60 11.28 _packager - Abstract base class for packagers. 59 11.26 mand - Individual Distutils commands. 59 11.25 distutils.cmd - Abstract base class for Distutils commands. 58 11.24 distutils.version - Version number classes. 57 11.23 distutils.text_file - The TextFile class. 57 11.22 distutils.sysconfig - System configuration information. 57 11.21 distutils.spawn - Spawn a sub-process. 56 11.20 distutils.log - Simple PEP 282-style logging. 55 11.19 distutils.filelist - The FileList class. 55 11.18 distutils.fancy_getopt - Wrapper around the standard getopt module. 55 11.17 distutils.errors - Distutils exceptions. 55 11.15 distutils.extension - The Extension class. 53 11.14 distutils.dist - The Distribution class. 52 11.13 distutils.util - Miscellaneous other utility functions. 52 11.12 distutils.file_util - Single file operations. 51 11.11 distutils.dir_util - Directory tree operations. 51 11.9 distutils.archive_util - Archiving utilities. 51 11.8 distutils.mwerkscompiler - Metrowerks CodeWarrior support. 50 11.7 distutils.emxccompiler - OS/2 EMX Compiler. 50 11.6 distutils.cygwincompiler - Cygwin Compiler. 50 11.5 distutils.bcppcompiler - Borland Compiler. 50 11.4 distutils.msvccompiler - Microsoft Compiler. 44 11.3 distutils.unixccompiler - Unix C Compiler. 39 11 API Reference 41 11.1 re - Core Distutils functionality. 39 10.2 Creating a source distribution: the sdist command. 38 10 Command Reference 39 10.1 Installing modules: the install command family. 36 iĩ Extending Distutils 37 9.1 Integrating new commands. 33 8.2 Pure Python distribution (by package). 29 7 Uploading Packages to the Package Index 31 8 Examples 33 8.1 Pure Python distribution (by module). 28 6 Registering with the Package Index 29 6.1 The. 21 5 Creating Built Distributions 23 5.1 Creating dumb built distributions. 15 3 Writing the Setup Configuration File 17 4 Creating a Source Distribution 19 4.1 Specifying the files to distribute. 8 2.4 Relationships between Distributions and Packages. 5 2 Writing the Setup Script 7 2.1 Listing whole packages. CONTENTS 1 An Introduction to Distutils 3 1.1 Concepts & Terminology.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |