You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Revisit "Package" vs "Distribution" vs "Distribution Packages" #106
To align with my changes to the stdlib docs, I tweaked a couple of section titles to use the term "Distribution Packages" rather than "Distributions": 4c2e875
However, that introduced something of an internal inconsistency within PyPUG, so I created this issue to specifically consider how to handle this long term (the bare "Distributions" really didn't work in the context of the standard library docs, and I'd like to keep the two as consistent as we feasibly can).
See issue #89 for a lot more on the terminology challenges :P
The problem with "dist" is mostly its awkwardness as a word. "dists" is really quite hard to say. I think it may be the best option we have available, given the existing sdist and bdist naming.
as much as it pains me to go back and forth on stuff, I'm wondering if the original double meaning of "Package" was actually not so bad, given the alternatives. "Distribution Package" seems so cumbersome to me for the PyPUG. As it is now, you've only tweaked a few titles, but we're still left with a lot of bare uses of "Distribution", so it does feel confusing. I can't imagine saying "Distribution Package" over and over again in the PyPUG, and if "Distribution" alone doesn't work in the core docs, then to me, that leaves "Package", but always linking to the glossary term, so users can get the story and how the term is overloaded, and why we're not using "Distribution" alone. We could even write an Advanced section on the whole analyses of the problem of terminology for this.
@qwcode I pretty much agree. The word "distribution" feels unnatural every time I use it and I end up mangling sentences to try to work around it. It's unfortunate that "package" means multiple things, but (given Linux distro and Python Distribution) so does "distribution". I think that no matter how much we try to promote a new term, people will keep using "package" in everyday discussion. Maybe it's time to accept that and move on. Practicality beats purity and all...
I think I see a possibility for agreement. How about if we stop using the word "Distribution" as a stand-alone term for the reasons Nick mentioned, and we use the word "Package" for the reasons @qwcode and @pfmoore mentioned. But we prefix Package as "Distribution Package" whenever it's necessary to avoid ambiguity or be precise (presumably these cases will be rare).
I don't know if the docs ever took that approach in a previous iteration.
A funny thing is that I also think "Distribution" is very cumbersome, and I can't imagine ever saying that I would "install a distribution." But I have no problem whatsoever talking about uploading "source distributions," etc. The combined phrase rolls off the tongue much more easily. As a final note, because of built distributions and source distributions, I don't think we'll ever be able to get away from the term "distribution" entirely either.
Distribution package in section titles to avoid ambiguity, and just
"package" as the typical term in the body of the text would sound good to
me. That aligns pretty well with my original suggestions for the
terminology guide as well.
We can also be happy that we tried the "distributions" experiment and it
didn't work out. I "tried it, really didn't like it" is a better place to
be than just assuming we were stuck with the ambiguous dual meaning of
"package".
The "distribution package" vs "import package" was a relatively novel phrasing that came up in the discussions on #87 (and was subsequently pulled out to #89).
I think it's definitely worth trying an approach that goes with something like:
"distribution package" in headings
"package" in body text, unless it's genuinely ambiguous, then "distribution package" or "import package" as appropriate
we keep the "Python Packaging Index" change (since that aligns nicely with the expansions of PyPA and PyPUG)
If you have time to put together a PR, it would be good to see how it looked in practice.
That sounds fine. The only thing I'm wondering about is the heading suggestion. Are you saying, for example, that the heading for the installing tutorial should read, "Tutorial on Installing Distribution Packages"? I'd be concerned that would confuse newcomers that are just trying to learn how to "install a package" (especially since "Distribution Package" is an invented phrase). What about using the common wording in the heading, but the full phrase in the first sentence of the text (with a link to the glossary)?
I'm happy for the "only when ambiguous" case to apply to headings as well. I suspect the two I already changed would actually be OK with just "Packages" - it was "Distributions" that was ambiguous on the standard library side.
changed the title [-]Revisit "Distribution" vs "Distribution Packages"[/-][+]Revisit "Package" vs "Distribution" vs "Distribution Packages"[/+]on Oct 6, 2014
If we don't know what packages will be called in the future, then I favor mostly using "package."
But if there's a chance that PyPA (Warehouse, pip, etc) will be aligning behind "distribution" or something else then that changes things a bit, because we wouldn't want to work against that change. To @pfmoore's point that "no matter how much we try to promote a new term, people will keep using "package" in everyday discussion," I think that was doomed to fail since PyPI itself calls them packages. With Warehouse combined with the fact that pip is under the PyPA umbrella, it seems like there is a chance for a "reset."
I think project/release/file works well enough for Warehouse/PyPI.
Distribution packages (sdist, bdist_*), platform specific installers and
standalone executables would all fall under the "files" heading for a given
release.
For PyPUG, I think it's worth trying the more concise spelling, and seeing
what kind of feedback we get. It may also be worth including an explicit "A
note on 'packages'" that introduces the duality, and explains that it means
both "distribution package" and "import package", and the difference is
usually implied by context (installing/publishing = distribution package,
writing Python code = import package).
This is an ambiguity that's so firmly entrenched, I think our only hope is
to equip newcomers to deal with it.
but @gwideman , this sentence can be confusing to parse as well.
Is it "Python distribution" -> "packages"
Or "Python" -> "distribution packages"
Fair point. I did actually check whether python.org uses "distribution" to refer to a python installation kit assembled and offered by a particular supplier, and didn't find it there. However, on google I see that "Python distribution" is widely used this way, as in "Anaconda Python distribution" and so on.
So, clearly I was showing an example of a writer unaware of an ambiguity. :-)
Anyhow, I continue to think that "distribution" as a modifier of "package" is unlikely to be confused with linux distribution, while instances of bare "package" (with two different meanings) often appear in the same context, and are apt to be confusing for readers who don't understand the context beforehand.
@cjerdonek wrote: 'Take the title of the main tutorial for people to install packages, which currently reads, "Tutorial on Installing Distributions," which I'm proposing we change to "Tutorial on Installing Packages." '
What is a user who is searching for a tutorial on how to deploy their code likely to know already?
They almost certainly know the python language concept of "package" in connection with "import", with the connotation "library".
However, not yet having read about how to wrap up and deploy code, they don't yet know that the title "Tutorial on installing packages" uses a different meaning of package. Consequently, they interpret that sentence to mean something about deploying importable packages, or in other words, libraries.
If they are looking for how to deploy a complete application written in Python, or just a simple script, then the "installing a package" seems to them like it's not the topic they want.
@ncoghlan, @cjerdonek I am also happy to go with qualifying "package" "only when ambiguous". It's just that I think, for the uninitiated reader, it's ambiguous most of the time in the kind of docs that PPUG covers. :-)
If there's a page that discusses only one type of package or the other, then I suspect that's fine -- establish at the beginning which kind of package is the topic, and then probably no need to qualify subsequently.
For pages that refer to both kinds of package, it's far too easy to baffle the reader, who doesn't (yet) have the wherewithal to figure them out from context.
The software upon which distribution relies is called 'distutils', not 'packageutils. However, the distutils docs freely use "package" in place of "distribution".
PEP 426: ' the individual software components distributed in that phase are formally referred to as "distributions", but are more colloquially known as "packages" '
In short, despite the baked-in PEP-ordained nature of "distribution" as the official term, "package" is the term that persists, and it's what people say and write most of the time. So it's pretty certain that "package" will be the basic name going forward.
The remaining issue, for PPUG, is how to write articles for uninitiated readers such that there's minimal possibility of confusing them regarding which use of "package" means what.
So, either establish a simple rule (like "always qualify each instance"), or engage in judgement about ambiguity for every instance. Given that the writer is apt to underestimate that ambiguity, a rule has a better chance of reliable result.
Then it's a tradeoff regarding rule simplicity vs subtlety: "qualify every instance" versus "qualify the first instance in a paragraph or section, but you don't need to qualify each subsequent instance if it's clear that the subsequent instances can only refer back to the most recent qualified instance".
The simpler rule is easy to remember and more robust, while the latter might make reading more pleasant, but is vulnerable to later edits rearranging the text.
I think there is a practical point here as well. In writing things like emails, documentation, etc, I have tried to maintain the distribution/package distinction for some time now. And frankly, I have found that it is simply too awkward to do so consistently. It happens too often that using the word "distribution" results in an awkward turn of phrase, that leaves you rewording large chunks of your text to get round it (the worst offender here by far is "distributing a distribution"...)
To be perfectly honest, the inclination expressed here to go back to using "package" fills me with relief, as it feels as though I've been given permission to write my emails in a "natural" way again.
Ok, this may look a bit tardy but humour these concerns:
While in the PPUG it's easy to reference the term (to the second meaning in the glossary), it's not so convenient to do it anywhere else. Think about a conversation where 2 people use the same term but they mean different things.
"packaging a package" doesn't sound right. IMHO it's as bad as saying "distributing a distribution". For all the confusion the "distribution" term created for people that didn't bother to read the docs, at least it had a clear meaning without requiring a context.
What other options have been explored? How about: "package set", "release", "collection" or just "archive"? Maybe "bundle"? Actually, no, that's used in that deprecated pip feature.
Also, I see that the common argument against "distribution" is the fact that the "package" term is being used by linux distros. Ruby doesn't seem to have this problem, and they don't use the "package" term either, why Python has it then?
On the other hand, if we start renaming things, I think we should go all the way and rename the "package" (the first meaning, the directory with submodules) to something else. Otherwise we haven't really improved clarity.
The problem is that we have 10 years of experience referring to both distribution and import packages as "packages". Folks are going to encounter that in the real world, so we eventually decided that having the PyPUG attempt to describe new terminology that didn't match the way people actually talked in the real world would end up confusing newcomers more than it helped them.
That said, I'd personally prefer to elevate "distribution package" and "import package" to defined terms, rather than the cryptic "package meaning 1" and "package meaning 2". I was OK with the latter approach while reviewing the PR, but that was when I had the definitions right in front of me - from the perspective of several days since reading them, I have absolutely no idea which numeric reference is which, while I still know exactly what "distribution package" and "import package" mean.
(Actually, I think the dual meaning may go back to the birth of distutils itself, rather than setuptools - that would make it 16 years of history for the dual meaning, rather than 10).
Activity
cjerdonek commentedon Oct 4, 2014
By the way, is the word "dist" free for this? It's already sort of familiar to people because we have sdist and bdist.
Also, you should probably include this variant in the glossary ("Distribution Package" I mean).
ncoghlan commentedon Oct 4, 2014
See issue #89 for a lot more on the terminology challenges :P
The problem with "dist" is mostly its awkwardness as a word. "dists" is really quite hard to say. I think it may be the best option we have available, given the existing sdist and bdist naming.
ncoghlan commentedon Oct 4, 2014
The CPython docs update where I ran into the problem: https://hg.python.org/cpython/rev/3acb94e1bab8
qwcode commentedon Oct 4, 2014
as much as it pains me to go back and forth on stuff, I'm wondering if the original double meaning of "Package" was actually not so bad, given the alternatives. "Distribution Package" seems so cumbersome to me for the PyPUG. As it is now, you've only tweaked a few titles, but we're still left with a lot of bare uses of "Distribution", so it does feel confusing. I can't imagine saying "Distribution Package" over and over again in the PyPUG, and if "Distribution" alone doesn't work in the core docs, then to me, that leaves "Package", but always linking to the glossary term, so users can get the story and how the term is overloaded, and why we're not using "Distribution" alone. We could even write an Advanced section on the whole analyses of the problem of terminology for this.
pfmoore commentedon Oct 4, 2014
@qwcode I pretty much agree. The word "distribution" feels unnatural every time I use it and I end up mangling sentences to try to work around it. It's unfortunate that "package" means multiple things, but (given Linux distro and Python Distribution) so does "distribution". I think that no matter how much we try to promote a new term, people will keep using "package" in everyday discussion. Maybe it's time to accept that and move on. Practicality beats purity and all...
cjerdonek commentedon Oct 4, 2014
I think I see a possibility for agreement. How about if we stop using the word "Distribution" as a stand-alone term for the reasons Nick mentioned, and we use the word "Package" for the reasons @qwcode and @pfmoore mentioned. But we prefix Package as "Distribution Package" whenever it's necessary to avoid ambiguity or be precise (presumably these cases will be rare).
I don't know if the docs ever took that approach in a previous iteration.
A funny thing is that I also think "Distribution" is very cumbersome, and I can't imagine ever saying that I would "install a distribution." But I have no problem whatsoever talking about uploading "source distributions," etc. The combined phrase rolls off the tongue much more easily. As a final note, because of built distributions and source distributions, I don't think we'll ever be able to get away from the term "distribution" entirely either.
ncoghlan commentedon Oct 4, 2014
Distribution package in section titles to avoid ambiguity, and just
"package" as the typical term in the body of the text would sound good to
me. That aligns pretty well with my original suggestions for the
terminology guide as well.
We can also be happy that we tried the "distributions" experiment and it
didn't work out. I "tried it, really didn't like it" is a better place to
be than just assuming we were stuck with the ambiguous dual meaning of
"package".
ncoghlan commentedon Oct 5, 2014
Issue #87 was the original issue regarding the ambiguity of "package".
cjerdonek commentedon Oct 5, 2014
If no one else has started, I could put together a PR for this.
ncoghlan commentedon Oct 5, 2014
The "distribution package" vs "import package" was a relatively novel phrasing that came up in the discussions on #87 (and was subsequently pulled out to #89).
I think it's definitely worth trying an approach that goes with something like:
If you have time to put together a PR, it would be good to see how it looked in practice.
cjerdonek commentedon Oct 5, 2014
That sounds fine. The only thing I'm wondering about is the heading suggestion. Are you saying, for example, that the heading for the installing tutorial should read, "Tutorial on Installing Distribution Packages"? I'd be concerned that would confuse newcomers that are just trying to learn how to "install a package" (especially since "Distribution Package" is an invented phrase). What about using the common wording in the heading, but the full phrase in the first sentence of the text (with a link to the glossary)?
ncoghlan commentedon Oct 5, 2014
I'm happy for the "only when ambiguous" case to apply to headings as well. I suspect the two I already changed would actually be OK with just "Packages" - it was "Distributions" that was ambiguous on the standard library side.
qwcode commentedon Oct 5, 2014
yea, I think I'd like the headings to be just "Package" as well.
@cjerdonek , I haven't started a PR. go for it.
cjerdonek commentedon Oct 5, 2014
Great, will do.
Update Glossary (and links on some pages) for issue python#106.
11 remaining items
[-]Revisit "Distribution" vs "Distribution Packages"[/-][+]Revisit "Package" vs "Distribution" vs "Distribution Packages"[/+]cjerdonek commentedon Oct 6, 2014
If we don't know what packages will be called in the future, then I favor mostly using "package."
But if there's a chance that PyPA (Warehouse, pip, etc) will be aligning behind "distribution" or something else then that changes things a bit, because we wouldn't want to work against that change. To @pfmoore's point that "no matter how much we try to promote a new term, people will keep using "package" in everyday discussion," I think that was doomed to fail since PyPI itself calls them packages. With Warehouse combined with the fact that pip is under the PyPA umbrella, it seems like there is a chance for a "reset."
ncoghlan commentedon Oct 7, 2014
I think project/release/file works well enough for Warehouse/PyPI.
Distribution packages (sdist, bdist_*), platform specific installers and
standalone executables would all fall under the "files" heading for a given
release.
For PyPUG, I think it's worth trying the more concise spelling, and seeing
what kind of feedback we get. It may also be worth including an explicit "A
note on 'packages'" that introduces the duality, and explains that it means
both "distribution package" and "import package", and the difference is
usually implied by context (installing/publishing = distribution package,
writing Python code = import package).
This is an ambiguity that's so firmly entrenched, I think our only hope is
to equip newcomers to deal with it.
gwideman commentedon Oct 7, 2014
@qwcode wrote:
Fair point. I did actually check whether python.org uses "distribution" to refer to a python installation kit assembled and offered by a particular supplier, and didn't find it there. However, on google I see that "Python distribution" is widely used this way, as in "Anaconda Python distribution" and so on.
So, clearly I was showing an example of a writer unaware of an ambiguity. :-)
Anyhow, I continue to think that "distribution" as a modifier of "package" is unlikely to be confused with linux distribution, while instances of bare "package" (with two different meanings) often appear in the same context, and are apt to be confusing for readers who don't understand the context beforehand.
gwideman commentedon Oct 7, 2014
@cjerdonek wrote: 'Take the title of the main tutorial for people to install packages, which currently reads, "Tutorial on Installing Distributions," which I'm proposing we change to "Tutorial on Installing Packages." '
What is a user who is searching for a tutorial on how to deploy their code likely to know already?
They almost certainly know the python language concept of "package" in connection with "import", with the connotation "library".
However, not yet having read about how to wrap up and deploy code, they don't yet know that the title "Tutorial on installing packages" uses a different meaning of package. Consequently, they interpret that sentence to mean something about deploying importable packages, or in other words, libraries.
If they are looking for how to deploy a complete application written in Python, or just a simple script, then the "installing a package" seems to them like it's not the topic they want.
gwideman commentedon Oct 7, 2014
@ncoghlan, @cjerdonek I am also happy to go with qualifying "package" "only when ambiguous". It's just that I think, for the uninitiated reader, it's ambiguous most of the time in the kind of docs that PPUG covers. :-)
If there's a page that discusses only one type of package or the other, then I suspect that's fine -- establish at the beginning which kind of package is the topic, and then probably no need to qualify subsequently.
For pages that refer to both kinds of package, it's far too easy to baffle the reader, who doesn't (yet) have the wherewithal to figure them out from context.
gwideman commentedon Oct 7, 2014
On the term "distribution".
In short, despite the baked-in PEP-ordained nature of "distribution" as the official term, "package" is the term that persists, and it's what people say and write most of the time. So it's pretty certain that "package" will be the basic name going forward.
The remaining issue, for PPUG, is how to write articles for uninitiated readers such that there's minimal possibility of confusing them regarding which use of "package" means what.
So, either establish a simple rule (like "always qualify each instance"), or engage in judgement about ambiguity for every instance. Given that the writer is apt to underestimate that ambiguity, a rule has a better chance of reliable result.
Then it's a tradeoff regarding rule simplicity vs subtlety: "qualify every instance" versus "qualify the first instance in a paragraph or section, but you don't need to qualify each subsequent instance if it's clear that the subsequent instances can only refer back to the most recent qualified instance".
The simpler rule is easy to remember and more robust, while the latter might make reading more pleasant, but is vulnerable to later edits rearranging the text.
pfmoore commentedon Oct 7, 2014
I think there is a practical point here as well. In writing things like emails, documentation, etc, I have tried to maintain the distribution/package distinction for some time now. And frankly, I have found that it is simply too awkward to do so consistently. It happens too often that using the word "distribution" results in an awkward turn of phrase, that leaves you rewording large chunks of your text to get round it (the worst offender here by far is "distributing a distribution"...)
To be perfectly honest, the inclination expressed here to go back to using "package" fills me with relief, as it feels as though I've been given permission to write my emails in a "natural" way again.
qwcode commentedon Nov 2, 2014
ok folks, see what I merged in #115.
wanting to close this issue....
ionelmc commentedon Nov 6, 2014
Ok, this may look a bit tardy but humour these concerns:
While in the PPUG it's easy to reference the term (to the second meaning in the glossary), it's not so convenient to do it anywhere else. Think about a conversation where 2 people use the same term but they mean different things.
"packaging a package" doesn't sound right. IMHO it's as bad as saying "distributing a distribution". For all the confusion the "distribution" term created for people that didn't bother to read the docs, at least it had a clear meaning without requiring a context.
What other options have been explored? How about: "package set", "release", "collection" or just "archive"? Maybe "bundle"? Actually, no, that's used in that deprecated pip feature.
Also, I see that the common argument against "distribution" is the fact that the "package" term is being used by linux distros. Ruby doesn't seem to have this problem, and they don't use the "package" term either, why Python has it then?
On the other hand, if we start renaming things, I think we should go all the way and rename the "package" (the first meaning, the directory with submodules) to something else. Otherwise we haven't really improved clarity.
ncoghlan commentedon Nov 7, 2014
The problem is that we have 10 years of experience referring to both distribution and import packages as "packages". Folks are going to encounter that in the real world, so we eventually decided that having the PyPUG attempt to describe new terminology that didn't match the way people actually talked in the real world would end up confusing newcomers more than it helped them.
That said, I'd personally prefer to elevate "distribution package" and "import package" to defined terms, rather than the cryptic "package meaning 1" and "package meaning 2". I was OK with the latter approach while reviewing the PR, but that was when I had the definitions right in front of me - from the perspective of several days since reading them, I have absolutely no idea which numeric reference is which, while I still know exactly what "distribution package" and "import package" mean.
ncoghlan commentedon Nov 7, 2014
(Actually, I think the dual meaning may go back to the birth of distutils itself, rather than setuptools - that would make it 16 years of history for the dual meaning, rather than 10).
gwideman commentedon Nov 7, 2014
@ncoghlan +100 on your comment.
qwcode commentedon Nov 7, 2014
another PR revision coming up....