Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2022-04-29 19:13:01 +0300
committerRay Molenkamp <github@lazydodo.com>2022-04-29 19:13:01 +0300
commit3eb9b4dfbc25c2d1dfbd2c6ff3802fed19b9163b (patch)
treea79c395b3a2440513afcb2cb98d627fb709bc2eb
parenta6f951b4649a126de22131833ca38d74f056d928 (diff)
Windows: make.bat change python detection order
Given we are officially on 3.10 now, look for that version first, followed by any future version before falling back to 3.9
-rw-r--r--build_files/windows/find_dependencies.cmd15
1 files changed, 8 insertions, 7 deletions
diff --git a/build_files/windows/find_dependencies.cmd b/build_files/windows/find_dependencies.cmd
index fa893c949cf..1dfb4847e1b 100644
--- a/build_files/windows/find_dependencies.cmd
+++ b/build_files/windows/find_dependencies.cmd
@@ -3,13 +3,10 @@ for %%X in (svn.exe) do (set SVN=%%~$PATH:X)
for %%X in (cmake.exe) do (set CMAKE=%%~$PATH:X)
for %%X in (ctest.exe) do (set CTEST=%%~$PATH:X)
for %%X in (git.exe) do (set GIT=%%~$PATH:X)
-REM For python, default on 39 but if that does not exist also check
-REM the 310,311 and 312 folders to see if those are there, it checks
-REM this far ahead to ensure good lib folder compatibility in the future.
-set PYTHON=%BLENDER_DIR%\..\lib\win64_vc15\python\39\bin\python.exe
-if EXIST %PYTHON% (
- goto detect_python_done
-)
+REM For python, default on 310 but if that does not exist also check
+REM the 311, 312 and finally 39 folders to see if those are there, it checks
+REM this far ahead to ensure good lib folder compatibility in the future
+REM it falls back to 3.9 just incase it is a very old lib folder.
set PYTHON=%BLENDER_DIR%\..\lib\win64_vc15\python\310\bin\python.exe
if EXIST %PYTHON% (
goto detect_python_done
@@ -22,6 +19,10 @@ set PYTHON=%BLENDER_DIR%\..\lib\win64_vc15\python\312\bin\python.exe
if EXIST %PYTHON% (
goto detect_python_done
)
+set PYTHON=%BLENDER_DIR%\..\lib\win64_vc15\python\39\bin\python.exe
+if EXIST %PYTHON% (
+ goto detect_python_done
+)
if NOT EXIST %PYTHON% (
echo Warning: Python not found, there is likely an issue with the library folder