summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-07-12 09:47:02 +0200
committerAhmed Abdelhalim <[email protected]>2021-07-12 09:47:02 +0200
commit0d7cf1e331f54fd374c02667d0e937c68b1e6093 (patch)
tree47bb94ec2a59e0e9355cc390e4a1465ddb3b5a5e
parentd5c563a67f0987eace77ec217d4dfbf305aca69d (diff)
Update the instructions on installing python and configuring it
-rw-r--r--.bash_profile3
-rw-r--r--.pyenv/version1
-rw-r--r--Brewfile3
-rw-r--r--README.md7
4 files changed, 11 insertions, 3 deletions
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