We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a86e19 commit 38732e5Copy full SHA for 38732e5
brew/brew_pyenv
@@ -0,0 +1,29 @@
1
+
2
+PYVER=$(brew list --versions python | cut -d ' ' -f2)
3
+PYMIN=$(echo "$PYVER" | cut -d. -f1,2)
4
+PYPKG=$(echo "python@$PYMIN")
5
6
7
+# Uninstall pyenv version
8
+echo "Uninstalling $PYVER ..."
9
+pyenv uninstall $PYVER
10
+pyenv rehash
11
12
+# Create version symlink
13
+cd ~/.pyenv/versions
14
+ln -sfv "$(brew --prefix $PYPKG)" $PYMIN
15
16
+# Link include folder
17
+cd "$(brew --prefix $PYPKG)"
18
+ln -sfv Frameworks/Python.framework/Versions/$PYMIN/include/python$PYMIN include
19
20
+# Link executable commands
21
+cd "$(brew --prefix $PYPKG)/bin"
22
+ln -sfv idle3 idle
23
+ln -sfv pip3 pip
24
+ln -sfv python3 python
25
+ln -sfv wheel3 wheel
26
27
+# Rehash
28
29
0 commit comments