Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pip conf on new installations #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ done
if [ "${mode}" = "" ]; then # no mode
echo "Running cli installer"
wget https://raw.githubusercontent.com/${author}/${repo}/${branch}/scripts/install.py
pip3 install inquirer==3.4.0
pip3 install inquirer==3.4.0 --break-system-packages
python3 install.py
exit
fi
Expand Down Expand Up @@ -107,6 +107,16 @@ if [[ "$OSTYPE" =~ darwin.* ]]; then
mkdir -p ${SOURCES_DIR}
fi


if [ ! -f ~/.config/pip/pip.conf ]; then # create pip config
mkdir -p ~/.config/pip
cat > ~/.config/pip/pip.conf <<EOF
[global]
break-system-packages = true
EOF
fi


# check TON components
file1=${BIN_DIR}/ton/crypto/fift
file2=${BIN_DIR}/ton/lite-client/lite-client
Expand Down