mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
chore: drop support for pytohn 3.10 in setup scripts
This commit is contained in:
@@ -153,16 +153,13 @@ function Find-PythonExecutable {
|
|||||||
"python3.13",
|
"python3.13",
|
||||||
"python3.12",
|
"python3.12",
|
||||||
"python3.11",
|
"python3.11",
|
||||||
"python3.10",
|
|
||||||
"python3",
|
"python3",
|
||||||
"C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python313\python.exe",
|
"C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python313\python.exe",
|
||||||
"C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python312\python.exe",
|
"C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python312\python.exe",
|
||||||
"C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python311\python.exe",
|
"C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python311\python.exe",
|
||||||
"C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python310\python.exe",
|
|
||||||
"C:\Python313\python.exe",
|
"C:\Python313\python.exe",
|
||||||
"C:\Python312\python.exe",
|
"C:\Python312\python.exe",
|
||||||
"C:\Python311\python.exe",
|
"C:\Python311\python.exe",
|
||||||
"C:\Python310\python.exe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -178,10 +175,10 @@ function Main {
|
|||||||
"Starting the operations..." | Out-File $LogFilePath -Append
|
"Starting the operations..." | Out-File $LogFilePath -Append
|
||||||
"Current directory: $(Get-Location)" | Out-File $LogFilePath -Append
|
"Current directory: $(Get-Location)" | Out-File $LogFilePath -Append
|
||||||
|
|
||||||
# Exit on lower versions than Python 3.10 or when Python executable not found
|
# Exit on lower versions than Python 3.11 or when Python executable not found
|
||||||
$PythonExecutable = Find-PythonExecutable
|
$PythonExecutable = Find-PythonExecutable
|
||||||
if ($null -eq $PythonExecutable) {
|
if ($null -eq $PythonExecutable) {
|
||||||
Write-Log "No suitable Python executable found. Please ensure that Python 3.10 or higher is installed and available in the system PATH." -Level 'ERROR'
|
Write-Log "No suitable Python executable found. Please ensure that Python 3.11 or higher is installed and available in the system PATH." -Level 'ERROR'
|
||||||
Exit 1
|
Exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
8
setup.sh
8
setup.sh
@@ -25,7 +25,7 @@ function check_installed_python() {
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for v in 13 12 11 10
|
for v in 13 12 11
|
||||||
do
|
do
|
||||||
PYTHON="python3.${v}"
|
PYTHON="python3.${v}"
|
||||||
which $PYTHON
|
which $PYTHON
|
||||||
@@ -36,7 +36,7 @@ function check_installed_python() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "No usable python found. Please make sure to have python3.10 or newer installed."
|
echo "No usable python found. Please make sure to have python3.11 or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ function install() {
|
|||||||
install_redhat
|
install_redhat
|
||||||
else
|
else
|
||||||
echo "This script does not support your OS."
|
echo "This script does not support your OS."
|
||||||
echo "If you have Python version 3.10 - 3.13, pip, virtualenv, ta-lib you can continue."
|
echo "If you have Python version 3.11 - 3.13, pip, virtualenv, ta-lib you can continue."
|
||||||
echo "Wait 10 seconds to continue the next install steps or use ctrl+c to interrupt this shell."
|
echo "Wait 10 seconds to continue the next install steps or use ctrl+c to interrupt this shell."
|
||||||
sleep 10
|
sleep 10
|
||||||
fi
|
fi
|
||||||
@@ -284,7 +284,7 @@ function help() {
|
|||||||
echo " -p,--plot Install dependencies for Plotting scripts."
|
echo " -p,--plot Install dependencies for Plotting scripts."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verify if 3.10+ is installed
|
# Verify if 3.11+ is installed
|
||||||
check_installed_python
|
check_installed_python
|
||||||
|
|
||||||
case $* in
|
case $* in
|
||||||
|
|||||||
Reference in New Issue
Block a user