mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Update minimum Python version to 3.5.0
This commit is contained in:
parent
207337682c
commit
71be4f03be
3 changed files with 5 additions and 5 deletions
2
INSTALL
2
INSTALL
|
@ -17,7 +17,7 @@ qBittorrent - A BitTorrent client in C++ / Qt
|
||||||
|
|
||||||
- pkg-config (compile-time only)
|
- 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
|
* Required by the internal search engine
|
||||||
|
|
||||||
2a) Compile and install qBittorrent with Qt graphical interface
|
2a) Compile and install qBittorrent with Qt graphical interface
|
||||||
|
|
|
@ -252,7 +252,7 @@ bool Utils::ForeignApps::PythonInfo::isValid() const
|
||||||
|
|
||||||
bool Utils::ForeignApps::PythonInfo::isSupportedVersion() const
|
bool Utils::ForeignApps::PythonInfo::isSupportedVersion() const
|
||||||
{
|
{
|
||||||
return (version >= Version {3, 3, 0});
|
return (version >= Version {3, 5, 0});
|
||||||
}
|
}
|
||||||
|
|
||||||
PythonInfo Utils::ForeignApps::pythonInfo()
|
PythonInfo Utils::ForeignApps::pythonInfo()
|
||||||
|
|
|
@ -1790,7 +1790,7 @@ void MainWindow::on_actionSearchWidget_triggered()
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
const QMessageBox::StandardButton buttonPressed = QMessageBox::question(this, tr("Old Python Runtime")
|
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)
|
.arg(pyInfo.version)
|
||||||
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes);
|
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes);
|
||||||
if (buttonPressed == QMessageBox::Yes)
|
if (buttonPressed == QMessageBox::Yes)
|
||||||
|
@ -2028,9 +2028,9 @@ void MainWindow::installPython()
|
||||||
setCursor(QCursor(Qt::WaitCursor));
|
setCursor(QCursor(Qt::WaitCursor));
|
||||||
// Download python
|
// Download python
|
||||||
#ifdef QBT_APP_64BIT
|
#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
|
#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
|
#endif
|
||||||
Net::DownloadManager::instance()->download(
|
Net::DownloadManager::instance()->download(
|
||||||
Net::DownloadRequest(installerURL).saveToFile(true)
|
Net::DownloadRequest(installerURL).saveToFile(true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue