Skip to content

Commit

Permalink
fix: Use simple check for pip install (win)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho committed Dec 23, 2023
1 parent 6ecefa4 commit 3e37535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer/pip_install.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ goto :EOF

:python
rem python is 2 or 3 check(python3 version at python3 grammar)
call python -c "import sys; from distutils.version import LooseVersion;sys.exit(0 if (LooseVersion(sys.version) > LooseVersion('3')) else 1)" 2>NUL
rem Do a quick check as distutils has been removed in Python 3.12
call python -c "import sys; sys.exit(0 if (sys.version_info[0] >= 3) else 1)" 2>NUL
if errorlevel 1 goto :python_fail
set PYTHON=python
goto :create_venv
Expand Down

0 comments on commit 3e37535

Please sign in to comment.