From 58aaa5b7bbc584b5e2b79fd27cff6cac19b1c957 Mon Sep 17 00:00:00 2001 From: Valentin Niess Date: Sat, 4 Apr 2020 01:15:24 +0200 Subject: [PATCH] Patch the README examples --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7facad0..5061f4b 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,11 @@ Our AppImages provide relocatable Python runtimes. Installation is as simple as downloading a single file and changing its mode to executable, e.g. as: ```sh -wget https://github.com/niess/python-appimage/releases/download/python3.8/python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage +wget https://github.com/niess/python-appimage/releases/download/\ +python3.8/python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage chmod +x python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage -./python3.8 python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage + +./python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage ``` This should run Python 3.8 on _almost_ any Linux provided that `fuse` is @@ -19,16 +21,18 @@ extract the AppImage as explained hereafter. The installation mode described previously is enough if you only need vanilla Python with its standard library. However, if you plan to install extra -packages we recommmed extracting the AppImage as: +packages we recommmed extracting the AppImage, e.g. as: ```sh ./python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage --appimage-extract mv squashfs-root python3.8.2-cp38-cp38-manylinux1_x86_64.AppDir +rm -f python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage + ln -s python3.8.2-cp38-cp38-manylinux1_x86_64.AppDir/AppRun python3.8 ``` -Then, extra packages can be installed to the extracted AppDir using `pip`. E.g. -updating pip can be done as: +Then, extra packages can be installed to the extracted AppDir using `pip`. For +example updating pip can be done as: ```sh ./python3.8 -m pip install -U pip