This commit is contained in:
2024-02-29 01:04:07 +04:00
parent e358a96e76
commit c6979addd0
28 changed files with 2897 additions and 180 deletions

View File

@@ -20,22 +20,22 @@ CheckPython3()
{
echo ""
echo "============================================================="
echo "Python 3.10.12"
echo "Python 3.10.13"
echo "============================================================="
echo "Проверяем наличие Python3 в системе "
T=$(python3 -V | grep 3.10.12)
T=$(python3 -V | grep 3.10.13)
if [ "$T" == "" ];
then
echo "Устанавливаем зависимости для Python 3.10 "
sudo apt-get build-dep python3.10
echo "Скачиваем Python 3.10.12 "
echo "Скачиваем Python 3.10.13 "
cd /tmp/
wget -c https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz
wget -c https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz
echo "Распаковываем архив... "
tar -xvzf Python-3.10.12.tgz
cd Python-3.10.12
tar -xvzf Python-3.10.13.tgz
cd Python-3.10.13
echo "Настраиваем пакет... "
./configure --enable-optimizations
@@ -44,15 +44,15 @@ CheckPython3()
make
make test
echo "Устанавливаем Python 3.10.12... "
echo "Устанавливаем Python 3.10.13... "
sudo make install
else
echo "Уже установлен Python 3.10.12"
echo "Уже установлен Python 3.10.13"
return 1
fi
echo "Перепроверяем " $1
T=$(python3 -V | grep 3.10.12)
T=$(python3 -V | grep 3.10.13)
if $T= ""
then
echo "Не удалось установить " $1

View File

@@ -2,4 +2,4 @@ Flask
Flask-Compress
Flask-Cors
gunicorn
requests