mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-26 04:59:38 +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 ~
|
||||
mkdir -p ~/.local/bin/
|
||||
|
||||
# My pre-commit configuration expects to find a pypy
|
||||
ln -sf /usr/bin/python ~/.local/bin/pypy
|
||||
ln -sf /usr/bin/python3 ~/.local/bin/pypy3
|
||||
if ! hash pypy 2>/dev/null; then
|
||||
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
|
||||
python3 -m venv ~/venv
|
||||
|
Loading…
Reference in New Issue
Block a user