diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index 902d1bf48..fb0d2a44c 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -64,6 +64,7 @@ + diff --git a/chapter08/setuptools.xml b/chapter08/setuptools.xml new file mode 100644 index 000000000..9d82adfd1 --- /dev/null +++ b/chapter08/setuptools.xml @@ -0,0 +1,85 @@ + + + %general-entities; +]> + + + + + + setuptools + &setuptools-version; +
&setuptools-url;
+
+ + Setuptools-&setuptools-version; + + + setuptools + + + + + + <para>Setuptools is a Python library for downloading, building, + installing, upgrading, and uninstalling Python packages easily.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + <seglistitem> + <seg>&setuptools-fin-sbu;</seg> + <seg>&setuptools-fin-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Setuptools + + The installation of setuptools needs pip. Prepare the temporary + copy of it: + +tar xf ../pip-&pip-version;.tar.gz + + Remove useless Windows PE executables: + +find -name \*.exe -delete +sed '/\.exe$/d' -i setuptools.egg-info/SOURCES.txt + + Build the setuptools package. The building process needs pip + and setuptools itself, set PYTHONPATH so + python3 will be able to find them: + +PYTHONPATH=pip-&pip-version;/src:. \ +python3 -m pip wheel -w dist --no-build-isolation --no-deps $PWD + + Install setuptools with the following command: + +PYTHONPATH=pip-&pip-version;/src:. \ +python3 -m pip install --no-index --find-links dist setuptools --force-reinstall + + + + + Contents of Setuptools + + + Installed directories + + + + /usr/lib/python&python-minor;/site-packages/_distutils_hack, + /usr/lib/python&python-minor;/site-packages/pkg_resources, + /usr/lib/python&python-minor;/site-packages/setuptools, and + /usr/lib/python&python-minor;/site-packages/setuptools-&setuptools-version;.dist-info + + + + + + +
diff --git a/packages.ent b/packages.ent index 7028fd870..8ebefb88c 100644 --- a/packages.ent +++ b/packages.ent @@ -632,6 +632,8 @@ + +