-
Notifications
You must be signed in to change notification settings - Fork 3
/
env_setup.sh
executable file
·86 lines (78 loc) · 1.88 KB
/
env_setup.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#########
# BASIC
#########
#debian
sudo apt -y update
sudo apt -y install gcc
sudo apt -y install g++
sudo apt -y install python3
sudo apt -y install python3-pip
sudo apt -y install python3-dev
sudo apt -y install git
sudo apt -y install curl
sudo apt -y install wget
sudo apt -y install tmux
sudo apt -y install vim
#arch
sudo pacman --noconfirm -S gcc
sudo pacman --noconfirm -S g++
sudo pacman --noconfirm -S cmake
sudo pacman --noconfirm -S make
sudo pacman --noconfirm -Syu python3
sudo pacman --noconfirm -S git
sudo pacman --noconfirm -S curl
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
rm get-pip.py
#macos
case $(uname | tr '[:upper:]' '[:lower:]') in
linux*)
;;
darwin*)
export HOMEBREW_INSTALL_FROM_API=1
export NONINTERACTIVE=1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
yes | brew install [email protected]
yes | brew install rustup
yes | rustup-init
yes | brew install maturin
;;
msys*)
;;
*)
;;
esac
# #########
# # WITH EXTENSIONS
# #########
# #clear
# echo "Do you wish to install some extensions, so you can use some advanced module later?"
# select yn in "Yes" "No"; do
# case $yn in
# Yes ) break;;
# No ) exit;;
# esac
# done
# # x11
# sudo apt -y install libx11-dev
# sudo apt -y install libxmu-dev
# # install
# sudo apt -y install git
# if [ ! -d "auto_everything" ]; then
# # not exist
# git clone https://github.com/yingshaoxo/auto_everything.git
# cd auto_everything
# fi
# sudo rm build/* -fr
# sudo rm dist/* -fr
# sudo python3 super_setup.py bdist_wheel
# cd dist
# sudo pip3 install --ignore-installed auto_everything*
# cd ..
# cd auto
# user=$(whoami)
# sudo chown -R $user:$user .
# python -m pip install --ignore-installed .
# sudo pip3 install --ignore-installed .
# cd ..
# cd example