Skip to content

Commit 50e79f3

Browse files
authored
Merge pull request #420 from yungwine/break-system-packages
upgrade pip before install in cli mode
2 parents 79aa845 + 2cac579 commit 50e79f3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/install.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ fi
8888
if [ "${mode}" = "none" ] && [ "$backup" = "none" ]; then # no mode or backup was provided
8989
echo "Running cli installer"
9090
wget https://raw.githubusercontent.com/${author}/${repo}/${branch}/scripts/install.py
91-
pip3 install inquirer==3.4.0
91+
python3 -m pip install --upgrade pip
92+
pip3 install inquirer==3.4.0 --break-system-packages
9293
python3 install.py
9394
exit
9495
fi
@@ -123,6 +124,16 @@ if [[ "$OSTYPE" =~ darwin.* ]]; then
123124
mkdir -p ${SOURCES_DIR}
124125
fi
125126

127+
128+
if [ ! -f ~/.config/pip/pip.conf ]; then # create pip config
129+
mkdir -p ~/.config/pip
130+
cat > ~/.config/pip/pip.conf <<EOF
131+
[global]
132+
break-system-packages = true
133+
EOF
134+
fi
135+
136+
126137
# check TON components
127138
file1=${BIN_DIR}/ton/crypto/fift
128139
file2=${BIN_DIR}/ton/lite-client/lite-client

0 commit comments

Comments
 (0)