Add pipx installer script, make direnv script executable
This commit is contained in:
parent
0d86ac48f8
commit
87d890c75a
0
packages/direnv.sh
Normal file → Executable file
0
packages/direnv.sh
Normal file → Executable file
20
packages/pipx.sh
Executable file
20
packages/pipx.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
command -v python3 > /dev/null || {
|
||||||
|
echo "python3 executable not found, exiting"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
python3 -c "import sys; assert sys.version_info[0] >= 3 and sys.version_info[1] >= 7" || {
|
||||||
|
echo python3 --version
|
||||||
|
echo "python version too old, requires >=3.7"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
USERSITE=$(python3 -c "import site; print(site._get_path(site._getuserbase()))")
|
||||||
|
mkdir -p $USERSITE
|
||||||
|
|
||||||
|
if [[ ! -e "$USERSITE/pipx" ]]
|
||||||
|
then
|
||||||
|
python3 -m pip install --user pipx
|
||||||
|
fi
|
|
@ -10,3 +10,5 @@ index_main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
index_main
|
index_main
|
||||||
|
echo "suggested install to build python:\
|
||||||
|
base-devel openssl zlib xz tk"
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
python
|
|
||||||
python-pip
|
|
||||||
python-pynvim
|
|
||||||
python-virtualenv
|
|
||||||
base-devel
|
|
||||||
openssl
|
|
||||||
zlib
|
|
||||||
xz
|
|
||||||
tk
|
|
Loading…
Reference in a new issue