Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 1 | .. _reference: |
| 2 | |
| 3 | ***************** |
| 4 | Command Reference |
| 5 | ***************** |
| 6 | |
Nick Coghlan | dae1229 | 2019-05-14 22:04:30 +1000 | [diff] [blame] | 7 | .. include:: ./_setuptools_disclaimer.rst |
| 8 | |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 9 | .. % \section{Building modules: the \protect\command{build} command family} |
| 10 | .. % \label{build-cmds} |
| 11 | .. % \subsubsection{\protect\command{build}} |
| 12 | .. % \label{build-cmd} |
| 13 | .. % \subsubsection{\protect\command{build\_py}} |
| 14 | .. % \label{build-py-cmd} |
| 15 | .. % \subsubsection{\protect\command{build\_ext}} |
| 16 | .. % \label{build-ext-cmd} |
| 17 | .. % \subsubsection{\protect\command{build\_clib}} |
| 18 | .. % \label{build-clib-cmd} |
| 19 | |
| 20 | |
| 21 | .. _install-cmd: |
| 22 | |
| 23 | Installing modules: the :command:`install` command family |
| 24 | ========================================================= |
| 25 | |
| 26 | The install command ensures that the build commands have been run and then runs |
| 27 | the subcommands :command:`install_lib`, :command:`install_data` and |
| 28 | :command:`install_scripts`. |
| 29 | |
| 30 | .. % \subsubsection{\protect\command{install\_lib}} |
| 31 | .. % \label{install-lib-cmd} |
| 32 | |
| 33 | |
| 34 | .. _install-data-cmd: |
| 35 | |
| 36 | :command:`install_data` |
| 37 | ----------------------- |
| 38 | |
| 39 | This command installs all data files provided with the distribution. |
| 40 | |
| 41 | |
| 42 | .. _install-scripts-cmd: |
| 43 | |
| 44 | :command:`install_scripts` |
| 45 | -------------------------- |
| 46 | |
| 47 | This command installs all (Python) scripts in the distribution. |
| 48 | |
| 49 | .. % \subsection{Cleaning up: the \protect\command{clean} command} |
| 50 | .. % \label{clean-cmd} |
| 51 | |
| 52 | |
Tarek Ziadé | 96c45a9 | 2010-07-31 09:10:51 +0000 | [diff] [blame] | 53 | .. _sdist-cmd: |
| 54 | |
| 55 | Creating a source distribution: the :command:`sdist` command |
| 56 | ============================================================ |
| 57 | |
Georg Brandl | d5f2d6e | 2010-07-31 09:15:10 +0000 | [diff] [blame] | 58 | .. XXX fragment moved down from above: needs context! |
Tarek Ziadé | 96c45a9 | 2010-07-31 09:10:51 +0000 | [diff] [blame] | 59 | |
| 60 | The manifest template commands are: |
| 61 | |
| 62 | +-------------------------------------------+-----------------------------------------------+ |
| 63 | | Command | Description | |
| 64 | +===========================================+===============================================+ |
| 65 | | :command:`include pat1 pat2 ...` | include all files matching any of the listed | |
| 66 | | | patterns | |
| 67 | +-------------------------------------------+-----------------------------------------------+ |
| 68 | | :command:`exclude pat1 pat2 ...` | exclude all files matching any of the listed | |
| 69 | | | patterns | |
| 70 | +-------------------------------------------+-----------------------------------------------+ |
| 71 | | :command:`recursive-include dir pat1 pat2 | include all files under *dir* matching any of | |
| 72 | | ...` | the listed patterns | |
| 73 | +-------------------------------------------+-----------------------------------------------+ |
| 74 | | :command:`recursive-exclude dir pat1 pat2 | exclude all files under *dir* matching any of | |
| 75 | | ...` | the listed patterns | |
| 76 | +-------------------------------------------+-----------------------------------------------+ |
| 77 | | :command:`global-include pat1 pat2 ...` | include all files anywhere in the source tree | |
| 78 | | | matching --- & any of the listed patterns | |
| 79 | +-------------------------------------------+-----------------------------------------------+ |
| 80 | | :command:`global-exclude pat1 pat2 ...` | exclude all files anywhere in the source tree | |
| 81 | | | matching --- & any of the listed patterns | |
| 82 | +-------------------------------------------+-----------------------------------------------+ |
| 83 | | :command:`prune dir` | exclude all files under *dir* | |
| 84 | +-------------------------------------------+-----------------------------------------------+ |
| 85 | | :command:`graft dir` | include all files under *dir* | |
| 86 | +-------------------------------------------+-----------------------------------------------+ |
| 87 | |
| 88 | The patterns here are Unix-style "glob" patterns: ``*`` matches any sequence of |
| 89 | regular filename characters, ``?`` matches any single regular filename |
| 90 | character, and ``[range]`` matches any of the characters in *range* (e.g., |
| 91 | ``a-z``, ``a-zA-Z``, ``a-f0-9_.``). The definition of "regular filename |
| 92 | character" is platform-specific: on Unix it is anything except slash; on Windows |
| 93 | anything except backslash or colon. |
| 94 | |
Georg Brandl | d5f2d6e | 2010-07-31 09:15:10 +0000 | [diff] [blame] | 95 | .. XXX Windows support not there yet |
Tarek Ziadé | 96c45a9 | 2010-07-31 09:10:51 +0000 | [diff] [blame] | 96 | |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 97 | .. % \section{Creating a built distribution: the |
| 98 | .. % \protect\command{bdist} command family} |
| 99 | .. % \label{bdist-cmds} |
| 100 | |
| 101 | .. % \subsection{\protect\command{bdist}} |
| 102 | .. % \subsection{\protect\command{bdist\_dumb}} |
| 103 | .. % \subsection{\protect\command{bdist\_rpm}} |
| 104 | .. % \subsection{\protect\command{bdist\_wininst}} |
| 105 | |
| 106 | |