diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml index 0f6ba7cb6..ce87e24a9 100644 --- a/chapter08/wheel.xml +++ b/chapter08/wheel.xml @@ -40,39 +40,52 @@ Installation of Wheel + The installation of wheel needs pip and setuptools. + Prepare the temporary copies of them: + +tar xf ../pip-&pip-version;.tar.gz +tar xf ../setuptools-&setuptools-version;.tar.gz + + Build the wheel package. The building process needs pip, + setuptools, and wheel itself, set PYTHONPATH so + python3 will be able to find them: + +PYTHONPATH=pip-&pip-version;/src:setuptools-&setuptools-version;:src \ +python3 -m pip wheel -w dist --no-build-isolation --no-deps $PWD + Install wheel with the following command: -pip3 install --no-index $PWD +PYTHONPATH=pip-&pip-version;/src:setuptools-&setuptools-version;:src \ +python3 -m pip install --no-index --find-links dist wheel --force-reinstall - The meaning of the pip3 options: + The meaning of the install parameters: - install + -w dist - Install the package. + Put the created wheel into the + dist directory. - --no-index + --find-links dist - Prevent pip from fetching files from the online package - repository (PyPI). If packages are installed in the correct order, - then it won't need to fetch any files in the first place, but this - option adds some safety in case of user error. + Install wheel from the + dist directory. - $PWD + --force-reinstall - Look for files to install in the current working directory. + Install the package even if it can be found in + PYTHONPATH. - diff --git a/packages.ent b/packages.ent index 54826da17..7028fd870 100644 --- a/packages.ent +++ b/packages.ent @@ -602,6 +602,12 @@ + + + + + + @@ -621,6 +627,12 @@ + + + + + + @@ -733,7 +745,7 @@ - +