Mercurial > cpython-lru_cache-weakref
annotate Doc/packaging/commandref.rst @ 70817:dd775b1561ba
Fix markup.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 14 Jun 2011 21:09:55 +0200 |
| parents | 1f7297534424 |
| children | 3a4b983dd70b |
| rev | line source |
|---|---|
|
70594
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
1 .. _packaging-command-reference: |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
2 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
3 ***************** |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
4 Command Reference |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
5 ***************** |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
6 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
7 This reference briefly documents all standard Packaging commands and some of |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
8 their options. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
9 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
10 .. FIXME does not work: Use pysetup run --help-commands to list all |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
11 standard and extra commands availavble on your system, with their |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
12 description. Use pysetup run <command> --help to get help about the options |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
13 of one command. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
14 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
15 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
16 Preparing distributions |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
17 ======================= |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
18 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
19 :command:`check` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
20 ---------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
21 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
22 Perform some tests on the metadata of a distribution. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
23 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
24 For example, it verifies that all required metadata fields are provided in the |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
25 :file:`setup.cfg` file. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
26 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
27 .. TODO document reST checks |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
28 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
29 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
30 :command:`test` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
31 --------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
32 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
33 Run a test suite. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
34 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
35 When doing test-driven development, or running automated builds that need |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
36 testing before they are installed for downloading or use, it's often useful to |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
37 be able to run a project's unit tests without actually installing the project |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
38 anywhere. The :command:`test` command runs project's unit tests without |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
39 actually installing it, by temporarily putting the project's source on |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
40 :data:`sys.path`, after first running :command:`build_ext -i` to ensure that any |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
41 C extensions are built. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
42 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
43 You can use this command in one of two ways: either by specifying a |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
44 unittest-compatible test suite for your project (or any callable that returns |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
45 it) or by passing a test runner function that will run your tests and display |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
46 results in the console. Both options take a Python dotted name in the form |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
47 ``package.module.callable`` to specify the object to use. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
48 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
49 If none of these options are specified, Packaging will try to perform test |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
50 discovery using either unittest (for Python 3.2 and higher) or unittest2 (for |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
51 older versions, if installed). |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
52 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
53 .. this is a pseudo-command name used to disambiguate the options in indexes and |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
54 links |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
55 .. program:: packaging test |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
56 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
57 .. cmdoption:: --suite=NAME, -s NAME |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
58 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
59 Specify the test suite (or module, class, or method) to be run. The default |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
60 for this option can be set by in the project's :file:`setup.cfg` file:: |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
61 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
62 .. code-block:: cfg |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
63 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
64 [test] |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
65 suite = mypackage.tests.get_all_tests |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
66 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
67 .. cmdoption:: --runner=NAME, -r NAME |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
68 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
69 Specify the test runner to be called. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
70 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
71 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
72 :command:`config` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
73 ----------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
74 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
75 Perform distribution configuration. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
76 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
77 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
78 The build step |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
79 ============== |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
80 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
81 This step is mainly useful to compile C/C++ libraries or extension modules. The |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
82 build commands can be run manually to check for syntax errors or packaging |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
83 issues (for example if the addition of a new source file was forgotten in the |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
84 :file:`setup.cfg` file), and is also run automatically by commands which need |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
85 it. Packaging checks the mtime of source and built files to avoid re-building |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
86 if it's not necessary. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
87 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
88 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
89 :command:`build` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
90 ---------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
91 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
92 Build all files of a distribution, delegating to the other :command:`build_*` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
93 commands to do the work. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
94 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
95 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
96 :command:`build_clib` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
97 --------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
98 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
99 Build C libraries. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
100 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
101 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
102 :command:`build_ext` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
103 -------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
104 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
105 Build C/C++ extension modules. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
106 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
107 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
108 :command:`build_py` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
109 ------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
110 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
111 Build the Python modules (just copy them to the build directory) and |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
112 byte-compile them to .pyc files. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
113 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
114 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
115 :command:`build_scripts` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
116 ------------------------ |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
117 Build the scripts (just copy them to the build directory and adjust their |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
118 shebang if they're Python scripts). |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
119 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
120 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
121 :command:`clean` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
122 ---------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
123 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
124 Clean the build tree of the release. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
125 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
126 .. program:: packaging clean |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
127 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
128 .. cmdoption:: --all, -a |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
129 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
130 Remove build directories for modules, scripts, etc., not only temporary build |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
131 by-products. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
132 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
133 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
134 Creating source and built distributions |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
135 ======================================= |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
136 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
137 :command:`sdist` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
138 ---------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
139 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
140 Build a source distribution for a release. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
141 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
142 It is recommended that you always build and upload a source distribution. Users |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
143 of OSes with easy access to compilers and users of advanced packaging tools will |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
144 prefer to compile from source rather than using pre-built distributions. For |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
145 Windows users, providing a binary installer is also recommended practice. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
146 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
147 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
148 :command:`bdist` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
149 ---------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
150 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
151 Build a binary distribution for a release. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
152 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
153 This command will call other :command:`bdist_*` commands to create one or more |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
154 distributions depending on the options given. The default is to create a |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
155 .tar.gz archive on Unix and a zip archive on Windows or OS/2. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
156 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
157 .. program:: packaging bdist |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
158 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
159 .. cmdoption:: --formats |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
160 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
161 Binary formats to build (comma-separated list). |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
162 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
163 .. cmdoption:: --show-formats |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
164 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
165 Dump list of available formats. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
166 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
167 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
168 :command:`bdist_dumb` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
169 --------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
170 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
171 Build a "dumb" installer, a simple archive of files that could be unpacked under |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
172 ``$prefix`` or ``$exec_prefix``. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
173 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
174 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
175 :command:`bdist_wininst` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
176 ------------------------ |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
177 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
178 Build a Windows installer. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
179 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
180 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
181 :command:`bdist_msi` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
182 -------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
183 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
184 Build a `Microsoft Installer`_ (.msi) file. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
185 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
186 .. _Microsoft Installer: http://msdn.microsoft.com/en-us/library/cc185688(VS.85).aspx |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
187 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
188 In most cases, the :command:`bdist_msi` installer is a better choice than the |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
189 :command:`bdist_wininst` installer, because it provides better support for Win64 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
190 platforms, allows administrators to perform non-interactive installations, and |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
191 allows installation through group policies. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
192 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
193 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
194 Publishing distributions |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
195 ======================== |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
196 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
197 :command:`register` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
198 ------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
199 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
200 This command registers the current release with the Python Package Index. This |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
201 is described in more detail in :PEP:`301`. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
202 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
203 .. TODO explain user and project registration with the web UI |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
204 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
205 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
206 :command:`upload` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
207 ----------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
208 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
209 Upload source and/or binary distributions to PyPI. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
210 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
211 The distributions have to be built on the same command line as the |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
212 :command:`upload` command; see :ref:`packaging-package-upload` for more info. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
213 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
214 .. program:: packaging upload |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
215 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
216 .. cmdoption:: --sign, -s |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
217 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
218 Sign each uploaded file using GPG (GNU Privacy Guard). The ``gpg`` program |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
219 must be available for execution on the system ``PATH``. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
220 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
221 .. cmdoption:: --identity=NAME, -i NAME |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
222 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
223 Specify the identity or key name for GPG to use when signing. The value of |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
224 this option will be passed through the ``--local-user`` option of the |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
225 ``gpg`` program. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
226 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
227 .. cmdoption:: --show-response |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
228 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
229 Display the full response text from server; this is useful for debugging |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
230 PyPI problems. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
231 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
232 .. cmdoption:: --repository=URL, -r URL |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
233 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
234 The URL of the repository to upload to. Defaults to |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
235 http://pypi.python.org/pypi (i.e., the main PyPI installation). |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
236 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
237 .. cmdoption:: --upload-docs |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
238 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
239 Also run :command:`upload_docs`. Mainly useful as a default value in |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
240 :file:`setup.cfg` (on the command line, it's shorter to just type both |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
241 commands). |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
242 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
243 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
244 :command:`upload_docs` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
245 ---------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
246 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
247 Upload HTML documentation to PyPI. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
248 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
249 PyPI now supports publishing project documentation at a URI of the form |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
250 ``http://packages.python.org/<project>``. :command:`upload_docs` will create |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
251 the necessary zip file out of a documentation directory and will post to the |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
252 repository. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
253 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
254 Note that to upload the documentation of a project, the corresponding version |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
255 must already be registered with PyPI, using the :command:`register` command --- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
256 just like with :command:`upload`. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
257 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
258 Assuming there is an ``Example`` project with documentation in the subdirectory |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
259 :file:`docs`, for example:: |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
260 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
261 Example/ |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
262 example.py |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
263 setup.cfg |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
264 docs/ |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
265 build/ |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
266 html/ |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
267 index.html |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
268 tips_tricks.html |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
269 conf.py |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
270 index.txt |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
271 tips_tricks.txt |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
272 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
273 You can simply specify the directory with the HTML files in your |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
274 :file:`setup.cfg` file: |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
275 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
276 .. code-block:: cfg |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
277 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
278 [upload_docs] |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
279 upload-dir = docs/build/html |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
280 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
281 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
282 .. program:: packaging upload_docs |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
283 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
284 .. cmdoption:: --upload-dir |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
285 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
286 The directory to be uploaded to the repository. By default documentation |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
287 is searched for in ``docs`` (or ``doc``) directory in project root. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
288 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
289 .. cmdoption:: --show-response |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
290 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
291 Display the full response text from server; this is useful for debugging |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
292 PyPI problems. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
293 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
294 .. cmdoption:: --repository=URL, -r URL |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
295 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
296 The URL of the repository to upload to. Defaults to |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
297 http://pypi.python.org/pypi (i.e., the main PyPI installation). |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
298 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
299 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
300 The install step |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
301 ================ |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
302 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
303 These commands are used by end-users of a project using :program:`pysetup` or |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
304 another compatible installer. Each command will run the corresponding |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
305 :command:`build_*` command and then move the built files to their destination on |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
306 the target system. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
307 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
308 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
309 :command:`install_dist` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
310 ----------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
311 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
312 Install a distribution, delegating to the other :command:`install_*` commands to |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
313 do the work. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
314 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
315 .. program:: packaging install_dist |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
316 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
317 .. cmdoption:: --user |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
318 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
319 Install in user site-packages directory (see :PEP:`370`). |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
320 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
321 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
322 :command:`install_data` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
323 ----------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
324 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
325 Install data files. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
326 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
327 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
328 :command:`install_distinfo` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
329 --------------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
330 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
331 Install files recording details of the installation as specified in :PEP:`376`. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
332 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
333 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
334 :command:`install_headers` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
335 -------------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
336 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
337 Install C/C++ header files. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
338 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
339 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
340 :command:`install_lib` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
341 ---------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
342 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
343 Install C library files. |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
344 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
345 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
346 :command:`install_scripts` |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
347 -------------------------- |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
348 |
|
1f7297534424
Add documentation for the packaging module.
Éric Araujo <merwok@netwok.org>
parents:
diff
changeset
|
349 Install scripts. |
