Refactor the directory structure

This commit is contained in:
Manuel Thalmann 2023-04-01 17:08:17 +02:00
parent ba6e073aea
commit d190d1d3f4
55 changed files with 68 additions and 65 deletions
scripts/Debian/Software/Python

View file

@ -0,0 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "./setup.sh";
source "./pyenv.sh";
popd > /dev/null;

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
sudo bash "$BASH_SOURCE";
else
apt install -y python3 python-is-python3 python3-pip;
pip install pipenv;
fi