From 0d7cf1e331f54fd374c02667d0e937c68b1e6093 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 12 Jul 2021 09:47:02 +0200 Subject: Update the instructions on installing python and configuring it --- .bash_profile | 3 ++- .pyenv/version | 1 + Brewfile | 3 +-- README.md | 7 +++++++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .pyenv/version diff --git a/.bash_profile b/.bash_profile index 7951242..31aab5c 100644 --- a/.bash_profile +++ b/.bash_profile @@ -63,7 +63,8 @@ fi if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init --path)" eval "$(pyenv init -)" - eval "$(pyenv virtualenv-init -)" + export PIPENV_VENV_IN_PROJECT=1 + export PATH="$HOME/.local/bin:$PATH" fi # ==== Rust config diff --git a/.pyenv/version b/.pyenv/version new file mode 100644 index 0000000..11aaa06 --- /dev/null +++ b/.pyenv/version @@ -0,0 +1 @@ +3.9.5 diff --git a/Brewfile b/Brewfile index fcf87f7..1d85067 100644 --- a/Brewfile +++ b/Brewfile @@ -12,6 +12,7 @@ brew "pass-otp" brew "pinentry-mac" brew "ruby-build" brew "rbenv" +brew "pyenv" brew "vim" brew "thefuck" brew "the_silver_searcher" @@ -25,8 +26,6 @@ brew "tree" # brew "nvm" # brew "yarn" # brew "postgresql" -# brew "pyenv" -# brew "pyenv-virtualenv" # brew "redis" # brew "awscli" # brew "ansible" diff --git a/README.md b/README.md index 7b7fb2c..c458f77 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,13 @@ nvm install nvm alias default ``` +- Setup python +```bash +mkdir -p ~/.pyenv +pyenv install $(cat ~/.rc/.pyenv/version) +ln -sf ~/.rc/.pyenv/version ~/.pyenv/version +``` + ## Tools - Git Crypt -- cgit v1.2.3