diff --git a/packaging.html b/packaging.html index 32d5613..dd56d55 100644 --- a/packaging.html +++ b/packaging.html @@ -1,5 +1,4 @@ -
You are here: Home ‣ Dive Into Python 3 ‣
Difficulty level: ♦♦♦♦♢ @@ -85,6 +83,7 @@ This version requires Python 3 or later; a Python 2 version is available separat
The packages parameter highlights an unfortunate vocabulary overlap in the distribution process. We’ve been talking about the “package” as the thing you’re building (and potentially listing in The Python “Package” Index). But that’s not what this packages parameter refers to. It refers to the fact that the chardet module is a multi-file module, sometimes known as… a “package.” The packages parameter tells Distutils to include the chardet/ directory, its __init__.py file, and all the other .py files that constitute the chardet module. That’s kind of important; all this happy talk about documentation and metadata is irrelevant if you forget to include the actual code!
-
The httplib2 library is also a multi-file module, has a similar directory structure, and a similar packages
-
⁂