Skip to content

Commit 3415af2

Browse files
committed
fix Python check
1 parent ea82609 commit 3415af2

File tree

5 files changed

+11
-808
lines changed

5 files changed

+11
-808
lines changed

install_ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ python3 -m venv venv
33
source venv/bin/activate
44
python3 -m pip install --upgrade pip
55
python3 -m pip install -U setuptools
6-
python3 -m pip install -r requirements_linux.txt
6+
python3 -m pip install -r requirements.txt

provider_init.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

start.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ copy /Y config_temp.json config.json
1616
del config_temp.json
1717

1818
REM Checking for Python version
19-
python -c "import sys; print(sys.version_info[:2])" > version.txt
19+
python -c "import sys; print('.'.join(map(str, sys.version_info[:3])))" > version.txt
2020
set /p version=<version.txt
21-
IF "%version%" LSS "3.10" (
22-
echo Your version of Python is not supported. Please install Python 3.10
21+
IF "%version%" LSS "3.10.0" (
22+
echo Your version of Python %version% is not supported. Please install Python 3.10
2323
pause
2424
)
25-
IF "%version%" GEQ "3.11" (
26-
echo Your version of Python is not supported. Please install Python 3.10
25+
IF "%version%" GEQ "3.10.14" (
26+
echo Your version of Python %version% is not supported. Please install Python 3.10
2727
pause
2828
)
2929

start_endpoint.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ copy /Y config_temp.json config.json
1313
del config_temp.json
1414

1515
REM Checking for Python version
16-
python -c "import sys; print(sys.version_info[:2])" > version.txt
16+
python -c "import sys; print('.'.join(map(str, sys.version_info[:3])))" > version.txt
1717
set /p version=<version.txt
18-
IF "%version%" LSS "3.10" (
19-
echo Your version of Python is not supported. Please install Python 3.10
18+
IF "%version%" LSS "3.10.0" (
19+
echo Your version of Python %version% is not supported. Please install Python 3.10
2020
pause
2121
)
22-
IF "%version%" GEQ "3.11" (
23-
echo Your version of Python is not supported. Please install Python 3.10
22+
IF "%version%" GEQ "3.10.14" (
23+
echo Your version of Python %version% is not supported. Please install Python 3.10
2424
pause
2525
)
2626

0 commit comments

Comments
 (0)