From 8a2ef9a7f714f11881ed61714df3fd10ee430506 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 2 Sep 2022 10:46:06 +0200 Subject: [PATCH] Let the user choose how they add .local/bin. --- README.md | 8 ++++++-- compile-python.sh | 2 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2d30fb4..ace92fb 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,18 @@ xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev ``` -## Usage +## Installation Clone the repo anywhere, then in your `~/.bashrc` add: source PATH/To/THE/REPO/compile-python.sh +And for the compiled Python to be found in your PATH: -TL;DR: + PATH="$PATH:$HOME/.local/bin" + + +## Usage ```bash $ compile-pythons diff --git a/compile-python.sh b/compile-python.sh index d753668..feaf261 100644 --- a/compile-python.sh +++ b/compile-python.sh @@ -62,5 +62,3 @@ _compile_python() COMPREPLY=( $( compgen -W '$( command curl -s https://www.python.org/ftp/python/ | grep -o ">[0-9.]\+/<" | sed "s/^>//;s|/<$||" )' -- "${COMP_WORDS[COMP_CWORD]}") ) } complete -F _compile_python compile-python - -PATH="$PATH:$HOME/.local/bin"