Add script for installing python components

This commit is contained in:
Manuel Thalmann 2022-11-12 14:52:52 +01:00
parent 271646a178
commit a8dfee7feb
3 changed files with 22 additions and 15 deletions

View file

@ -36,21 +36,9 @@ The steps described here allow the creation of a linux system on a Surface Book
- Using [installer script](../scripts/PopOS/equalizer/install.sh)
- Install python
```bash
sudo apt install python3 python-is-python3 python3-pip
```
- Install pyenv
```bash
curl https://pyenv.run | bash
{
echo ""
echo "# pyenv"
echo 'export PYENV_ROOT="$HOME/.pyenv"'
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"'
echo 'eval "$(pyenv init -)"'
echo 'eval "$(pyenv virtualenv-init -)"'
} >> ~/.bashrc
```
- Using [installer script](../scripts/PopOS/software/python.sh)
- Install pyenv
- Using [installer script](../scripts/PopOS/software/pyenv.sh)
## Post-Install
- Add SSH-key to GitHub/Gitea websites

View file

@ -0,0 +1,10 @@
#!/bin/bash
curl https://pyenv.run | bash
{
echo ""
echo "# pyenv"
echo 'export PYENV_ROOT="$HOME/.pyenv"'
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"'
echo 'eval "$(pyenv init -)"'
echo 'eval "$(pyenv virtualenv-init -)"'
} >> ~/.bashrc

View file

@ -0,0 +1,9 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
exec sudo bash "$0"
fi
apt install python3 python-is-python3 python3-pip
pip install pipenv