From 0e3eb0bee49e5e5eab7e1bff7721197bb55bb97a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 31 Mar 2023 22:26:06 +0800 Subject: wheel: Remove magic PYTHONPATH=src (unneeded with flit-core) and ... duplicated pip3 explanation (already in flit-core page). --- chapter08/wheel.xml | 55 +---------------------------------------------------- 1 file changed, 1 insertion(+), 54 deletions(-) (limited to 'chapter08') diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml index 57457dacc..88e47d556 100644 --- a/chapter08/wheel.xml +++ b/chapter08/wheel.xml @@ -42,65 +42,12 @@ Compile Wheel with the following command: -PYTHONPATH=src pip3 wheel -w dist --no-build-isolation --no-deps $PWD +pip3 wheel -w dist --no-build-isolation --no-deps $PWD Install Wheel with the following command: pip3 install --no-index --find-links=dist wheel - - The meaning of the pip3 configuration options and commands: - - - PYTHONPATH=src - - Allows this package (not installed yet) to build a - wheel archive for itself, to avoid a chicken-or-egg problem. - - - - - wheel - - This command builds the wheel archive for this package. - - - - - -w dist - - Instructs pip to put the created wheel into the - dist directory. - - - - - install - - This command installs the package. - - - - - --no-build-isolation, - --no-deps, and - --no-index - - These options prevent fetching files from the online package - repository (PyPI). If packages are installed in the correct order, - pip won't need to fetch any files in the first place; these - options add some safety in case of user error. - - - - - --find-links dist - - Instructs pip to search for wheel archives in the - dist directory. - - - -- cgit v1.2.3-54-g00ecf