mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-02-16 21:50:58 +01:00
steamos-venv-pre-commit.bash: verify pypy{,3} doesn't exist before symlinking it
This commit is contained in:
parent
2ac5a8396c
commit
450ff51fa9
@ -4,9 +4,14 @@ set -x
|
|||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
mkdir -p ~/.local/bin/
|
mkdir -p ~/.local/bin/
|
||||||
|
|
||||||
# My pre-commit configuration expects to find a pypy
|
# My pre-commit configuration expects to find a pypy
|
||||||
ln -sf /usr/bin/python ~/.local/bin/pypy
|
if ! hash pypy 2>/dev/null; then
|
||||||
ln -sf /usr/bin/python3 ~/.local/bin/pypy3
|
ln -sf /usr/bin/python ~/.local/bin/pypy
|
||||||
|
fi
|
||||||
|
if ! hash pypy3 2>/dev/null; then
|
||||||
|
ln -sf /usr/bin/python3 ~/.local/bin/pypy3
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p ~/venv
|
mkdir -p ~/venv
|
||||||
python3 -m venv ~/venv
|
python3 -m venv ~/venv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user