blob: eedc5dac96b59e8fbe0ca1229d0019499c50cbcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env sh
#
# Install pyenv
#
# Parameters
SHARE="$1"
LIB="$2"
# Include basic functions
. $LIB/trashman/functions || exit 1
. $LIB/trashman/debian || exit 1
# Requirements
trashman_apt_install git
# Setup pyenv from installer script
#mkdir -p $HOME/.local/bin $HOME/.local/share
#cd $HOME/.local/bin
#wget https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer
#chmod +x pyenv-installer
#./pyenv-installer
# Setup pyenv by cloning it's repository
if [ ! -d "$HOME/.pyenv" ]; then
git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv
else
( cd $HOME/.pyenv && git pull )
fi
|