@@ -18,23 +18,29 @@ Glossary
18
18
19
19
Built Distribution
20
20
21
- A :term: `Distribution ` format containing files and metadata that only
22
- need to be moved to the correct location on the target system, to be
23
- installed. :term: `Wheel ` is such a format, whereas distutil's
24
- :term: `Source Distribution <Source Distribution (or "sdist")> ` is not,
25
- in that it requires a build step before it can be installed. This
26
- format does not imply that python files have to be precompiled
27
- (:term: `Wheel ` intentionally does not include compiled python files).
28
-
29
-
30
- Distribution
31
-
32
- A Python distribution is a versioned archive file that contains Python
33
- :term: `packages <Package (Meaning #1)> `, :term: `modules <module> `, and
34
- other resource files that are used to distribute a :term: `Release `. The
35
- distribution file is what an end-user will download from the internet
36
- and install. Distributions are often referred to as ":term: `Packages
37
- <Package (Meaning #2)> `".
21
+ A :term: `Distribution <Distribution Package> ` format containing files
22
+ and metadata that only need to be moved to the correct location on the
23
+ target system, to be installed. :term: `Wheel ` is such a format, whereas
24
+ distutil's :term: `Source Distribution <Source Distribution (or
25
+ "sdist")> ` is not, in that it requires a build step before it can be
26
+ installed. This format does not imply that python files have to be
27
+ precompiled (:term: `Wheel ` intentionally does not include compiled
28
+ python files).
29
+
30
+
31
+ Distribution Package
32
+
33
+ A versioned archive file that contains Python :term: `packages <Import
34
+ Package> `, :term: `modules <module> `, and other resource files that are
35
+ used to distribute a :term: `Release `. The distribution file is what an
36
+ end-user will download from the internet and install.
37
+
38
+ A distribution package is more commonly referred to with the single
39
+ words "package" or "distribution", but this guide may use the expanded
40
+ term when more clarity is needed to prevent confusion with an
41
+ :term: `Import Package ` which is also commonly called a "package", or
42
+ another kind of distribution (e.g. Linux or Python itself), which often
43
+ use the single term "distribution".
38
44
39
45
Egg
40
46
@@ -63,61 +69,45 @@ Glossary
63
69
multiple individual distributions.
64
70
65
71
66
- Module
67
-
68
- The basic unit of code reusability in Python, existing in one of two
69
- types: :term: `Pure Module `, or :term: `Extension Module `.
70
-
71
-
72
- Package (Meaning #1)
72
+ Import Package
73
73
74
74
A Python module which can contain other modules or recursively, other
75
- packages. You can import a package: ``import mypackage ``.
76
-
77
- For the purpose of distinguishing from the :term: `second meaning
78
- <Package (Meaning #2)> ` of "package", this guide may use the phrase
79
- "Import Package" for clarity.
80
-
75
+ packages.
81
76
82
- Package (Meaning #2)
77
+ An import package is more commonly referred to with the single word
78
+ "package", but this guide will use the expanded term when more clarity
79
+ is needed to prevent confusion with a :term: `Distribution Package ` which
80
+ is also commonly called a "package".
83
81
84
- A synonym for :term: `Distribution `. It is common in Python to refer to a
85
- distribution using the term "package". While the two meanings of the
86
- term "package" is not always 100% unambigous, the context of the term
87
- "package" is usually sufficient to distinguish the meaning of the
88
- word. For example, the python installation tool :ref: `pip ` is an acronym
89
- for "pip installs packages". while technically the tool installs
90
- distributions. Even the site where distributions are distributed at is
91
- called the ":term: `Python Package Index <Python Package Index (PyPI)> `"
92
- (and not the "Python Distribution Index").
82
+ Module
93
83
94
- For the purpose of distinguishing from the :term: `first meaning<Package
95
- (Meaning #1)> ` of "package", this guide may use the phrase "Distribution
96
- Package" for clarity.
84
+ The basic unit of code reusability in Python, existing in one of two
85
+ types: :term: `Pure Module `, or :term: `Extension Module `.
97
86
98
87
99
88
Package Index
100
89
101
90
A repository of distributions with a web interface to automate
102
- :term: `Distribution ` discovery and consumption.
91
+ :term: `package < Distribution Package> ` discovery and consumption.
103
92
104
93
105
94
Project
106
95
107
96
A library, framework, script, plugin, application, or collection of data
108
97
or other resources, or some combination thereof that is intended to be
109
- packaged into a :term: `Distribution `.
98
+ packaged into a :term: `Distribution <Distribution Package> `.
110
99
111
- Since most projects create :term: `Distributions <Distribution> ` using
112
- :ref: `distutils ` or :ref: `setuptools `, another practical way to define
113
- projects currently is something that contains a :term: `setup.py ` at the
114
- root of the project src directory, where "setup.py" is the project
115
- specification filename used by :ref: `distutils ` and :ref: `setuptools `.
100
+ Since most projects create :term: `Distributions <Distribution Package> `
101
+ using :ref: `distutils ` or :ref: `setuptools `, another practical way to
102
+ define projects currently is something that contains a :term: `setup.py `
103
+ at the root of the project src directory, where "setup.py" is the
104
+ project specification filename used by :ref: `distutils ` and
105
+ :ref: `setuptools `.
116
106
117
107
Python projects must have unique names, which are registered on
118
108
:term: `PyPI <Python Package Index (PyPI)> `. Each project will then
119
109
contain one or more :term: `Releases <Release> `, and each release may
120
- comprise one or more :term: `distributions <Distribution> `.
110
+ comprise one or more :term: `distributions <Distribution Package > `.
121
111
122
112
Note that there is a strong convention to name a project after the name
123
113
of the package that is imported to run that project. However, this
@@ -153,14 +143,14 @@ Glossary
153
143
by a version identifier.
154
144
155
145
Making a release may entail the publishing of multiple
156
- :term: `Distributions <Distribution> `. For example, if version 1.0 of a
157
- project was released, it could be available in both a source
146
+ :term: `Distributions <Distribution Package > `. For example, if version
147
+ 1.0 of a project was released, it could be available in both a source
158
148
distribution format and a Windows installer distribution format.
159
149
160
150
161
151
Requirement
162
152
163
- A specification for a :term: `package <Package (Meaning #2) > ` to be
153
+ A specification for a :term: `package <Distribution Package > ` to be
164
154
installed. :ref: `pip `, the :term: `PYPA <Python Packaging Authority
165
155
(PyPA)> ` recommended installer, allows various forms of specification
166
156
that can all be considered a "requirement". For more information, see the
@@ -188,10 +178,10 @@ Glossary
188
178
189
179
Source Distribution (or "sdist")
190
180
191
- A :term: `distribution <Distribution> ` format (usually generated using
192
- ``python setup.py sdist ``) that provides metadata and the essential
193
- source files needed for installing by a tool like :ref: `pip `, or for
194
- generating a :term: `Built Distribution `.
181
+ A :term: `distribution <Distribution Package > ` format (usually generated
182
+ using ``python setup.py sdist ``) that provides metadata and the
183
+ essential source files needed for installing by a tool like :ref: `pip `,
184
+ or for generating a :term: `Built Distribution `.
195
185
196
186
197
187
System Package
@@ -215,7 +205,7 @@ Glossary
215
205
216
206
Working Set
217
207
218
- A collection of :term: `distributions <Distribution> ` available for
219
- importing. These are the distributions that are on the `sys.path `
220
- variable. At most, one :term: `Distribution ` for a project is possible in
221
- a working set.
208
+ A collection of :term: `distributions <Distribution Package > ` available
209
+ for importing. These are the distributions that are on the `sys.path `
210
+ variable. At most, one :term: `Distribution <Distribution Package> ` for a
211
+ project is possible in a working set.
0 commit comments