Add script for installing python components
This commit is contained in:
parent
77130ff649
commit
e704613de6
3 changed files with 22 additions and 15 deletions
|
@ -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
|
||||
|
|
10
scripts/PopOS/software/pyenv.sh
Normal file
10
scripts/PopOS/software/pyenv.sh
Normal 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
|
9
scripts/PopOS/software/python.sh
Normal file
9
scripts/PopOS/software/python.sh
Normal 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
|
Loading…
Reference in a new issue