From 71be4f03be86ff29366ad2355f195b64457c6cae Mon Sep 17 00:00:00 2001 From: ngosang Date: Tue, 18 Aug 2020 20:56:39 +0200 Subject: [PATCH] Update minimum Python version to 3.5.0 --- INSTALL | 2 +- src/base/utils/foreignapps.cpp | 2 +- src/gui/mainwindow.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/INSTALL b/INSTALL index 6da1e98e0..28e452a0a 100644 --- a/INSTALL +++ b/INSTALL @@ -17,7 +17,7 @@ qBittorrent - A BitTorrent client in C++ / Qt - pkg-config (compile-time only) - - Python >= 3.3.0 (optional, runtime only) + - Python >= 3.5.0 (optional, runtime only) * Required by the internal search engine 2a) Compile and install qBittorrent with Qt graphical interface diff --git a/src/base/utils/foreignapps.cpp b/src/base/utils/foreignapps.cpp index ed9312b8b..2964b5ad4 100644 --- a/src/base/utils/foreignapps.cpp +++ b/src/base/utils/foreignapps.cpp @@ -252,7 +252,7 @@ bool Utils::ForeignApps::PythonInfo::isValid() const bool Utils::ForeignApps::PythonInfo::isSupportedVersion() const { - return (version >= Version {3, 3, 0}); + return (version >= Version {3, 5, 0}); } PythonInfo Utils::ForeignApps::pythonInfo() diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index d17804f4a..0732a6b14 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1790,7 +1790,7 @@ void MainWindow::on_actionSearchWidget_triggered() #ifdef Q_OS_WIN const QMessageBox::StandardButton buttonPressed = QMessageBox::question(this, tr("Old Python Runtime") - , tr("Your Python version (%1) is outdated. Minimum requirement: 3.3.0.\nDo you want to install a newer version now?") + , tr("Your Python version (%1) is outdated. Minimum requirement: 3.5.0.\nDo you want to install a newer version now?") .arg(pyInfo.version) , (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes); if (buttonPressed == QMessageBox::Yes) @@ -2028,9 +2028,9 @@ void MainWindow::installPython() setCursor(QCursor(Qt::WaitCursor)); // Download python #ifdef QBT_APP_64BIT - const QString installerURL = "https://www.python.org/ftp/python/3.8.1/python-3.8.1-amd64.exe"; + const QString installerURL = "https://www.python.org/ftp/python/3.8.5/python-3.8.5-amd64.exe"; #else - const QString installerURL = "https://www.python.org/ftp/python/3.8.1/python-3.8.1.exe"; + const QString installerURL = "https://www.python.org/ftp/python/3.8.5/python-3.8.5.exe"; #endif Net::DownloadManager::instance()->download( Net::DownloadRequest(installerURL).saveToFile(true)