curl e rustup
parent
fd7f544fa8
commit
de29dcc6c1
|
|
@ -0,0 +1,17 @@
|
||||||
|
#! /bin/bash --
|
||||||
|
[ ! -z "${GREZZO_1604316819}" ] && return; GREZZO_1604316819=0
|
||||||
|
|
||||||
|
function feat_addpacks_curl() {
|
||||||
|
if ! feat_missing "apt-get"; then
|
||||||
|
sudo apt-get install -y curl
|
||||||
|
elif ! feat_missing "pacman"; then
|
||||||
|
sudo pacman -S --needed curl
|
||||||
|
elif ! feat_missing "apk"; then
|
||||||
|
sudo apk add --no-cache curl
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function feat_add_curl() {
|
||||||
|
feat_addpacks_curl
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
#! /bin/bash --
|
#! /bin/bash --
|
||||||
[ ! -z "${GREZZO_1577142035}" ] && return; GREZZO_1577142035=0
|
[ ! -z "${GREZZO_1577142035}" ] && return; GREZZO_1577142035=0
|
||||||
|
|
||||||
|
. "$(this_script_path)/curl.sh"
|
||||||
|
|
||||||
function feat_addpacks_pip_dev() {
|
function feat_addpacks_pip_dev() {
|
||||||
if ! feat_missing "apt-get"; then
|
if ! feat_missing "apt-get"; then
|
||||||
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
|
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
|
||||||
|
|
@ -24,6 +26,7 @@ function feat_addpacks_pip_dev() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function feat_add_pip() {
|
function feat_add_pip() {
|
||||||
|
feat_needed curl
|
||||||
feat_addpacks_pip_dev
|
feat_addpacks_pip_dev
|
||||||
sed -n -e '/# Load pyenv automatically/,$p' \
|
sed -n -e '/# Load pyenv automatically/,$p' \
|
||||||
<(curl https://pyenv.run | bash 2>&1) \
|
<(curl https://pyenv.run | bash 2>&1) \
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,11 @@
|
||||||
[ ! -z "${GREZZO_1577142078}" ] && return; GREZZO_1577142078=0
|
[ ! -z "${GREZZO_1577142078}" ] && return; GREZZO_1577142078=0
|
||||||
|
|
||||||
. "$(this_script_path)/pip.sh"
|
. "$(this_script_path)/pip.sh"
|
||||||
|
. "$(this_script_path)/curl.sh"
|
||||||
|
|
||||||
function feat_add_poetry() {
|
function feat_add_poetry() {
|
||||||
feat_needed "pip"
|
feat_needed "pip"
|
||||||
|
feat_needed "curl"
|
||||||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
|
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
|
||||||
. "$HOME/.poetry/env"
|
. "$HOME/.poetry/env"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
#! /bin/bash --
|
||||||
|
[ ! -z "${GREZZO_1604315952}" ] && return; GREZZO_1604315952=0
|
||||||
|
|
||||||
|
. "$(this_script_path)/curl.sh"
|
||||||
|
|
||||||
|
function feat_add_rustup() {
|
||||||
|
feat_needed "curl"
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue