Skip to content

Commit a4144f0

Browse files
authored
Merge pull request #408 from yungwine/break-system-packages
add pip conf on new installations
2 parents 33bd174 + 64ecaf6 commit a4144f0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/install.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ done
7272
if [ "${mode}" = "" ]; then # no mode
7373
echo "Running cli installer"
7474
wget https://raw.githubusercontent.com/${author}/${repo}/${branch}/scripts/install.py
75-
pip3 install inquirer==3.4.0
75+
pip3 install inquirer==3.4.0 --break-system-packages
7676
python3 install.py
7777
exit
7878
fi
@@ -107,6 +107,16 @@ if [[ "$OSTYPE" =~ darwin.* ]]; then
107107
mkdir -p ${SOURCES_DIR}
108108
fi
109109

110+
111+
if [ ! -f ~/.config/pip/pip.conf ]; then # create pip config
112+
mkdir -p ~/.config/pip
113+
cat > ~/.config/pip/pip.conf <<EOF
114+
[global]
115+
break-system-packages = true
116+
EOF
117+
fi
118+
119+
110120
# check TON components
111121
file1=${BIN_DIR}/ton/crypto/fift
112122
file2=${BIN_DIR}/ton/lite-client/lite-client

0 commit comments

Comments
 (0)