-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyenvsetup.sh
More file actions
executable file
·38 lines (32 loc) · 1.05 KB
/
Copy pathpyenvsetup.sh
File metadata and controls
executable file
·38 lines (32 loc) · 1.05 KB
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
30
31
32
33
34
echo "Any existing pyenv environment in /nobackup/$USER will be removed. Continue Y/N"
read yes
if [[ "$yes" == "Y" ]];
then
cd /nobackup/$USER
rm -rf pyenv
mkdir pyenv
git clone https://github.com/pyenv/pyenv.git /nobackup/$USER/pyenv
cd pyenv && src/configure && make -C src
echo "export PYENV_ROOT=\"/nobackup/$USER/pyenv\"">>~/.bashrc
echo "export PATH=\"\$PYENV_ROOT/bin:\$PATH\"">>~/.bashrc
echo "export PATH=\"/auto/smartdev/bin/:\$PATH\"">>~/.bashrc
#eval "$(pyenv init --path)"
#eval "$(pyenv init -)"
echo "eval \"\$(pyenv init --path)\"">>~/.bashrc
echo "eval \"\$(pyenv init -)\"">>~/.bashrc
export PYENV_ROOT="/nobackup/$USER/pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="/auto/smartdev/bin/:$PATH"
pyenv install 3.9.0
#pyenv install 3.4.0
echo "alias pyversions='pyenv versions'">>~/.bashrc
echo "alias pyshell='pyenv shell'">>~/.bashrc
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
pyenv shell 3.9.0
pip install pexpect
#cp ~sukala/spitsim.py ~/
echo "alias lspitsim='python ~/scripts/spitsim.py simlog'">>~/.bashrc
else
echo "Exiting..."
fi