Refactor the directory structure
This commit is contained in:
parent
ba6e073aea
commit
d190d1d3f4
55 changed files with 68 additions and 65 deletions
scripts/Debian/Software/Python
5
scripts/Debian/Software/Python/install.sh
Executable file
5
scripts/Debian/Software/Python/install.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||
source "./setup.sh";
|
||||
source "./pyenv.sh";
|
||||
popd > /dev/null;
|
10
scripts/Debian/Software/Python/pyenv.sh
Executable file
10
scripts/Debian/Software/Python/pyenv.sh
Executable 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/Debian/Software/Python/setup.sh
Executable file
9
scripts/Debian/Software/Python/setup.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue