mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:11:00 +00:00
build-deps: drop unnecessarypython.exe check
If `IFCOS_INSTALL_PYTHON` is enabled, then it's guaranteed that `PYTHONHOME` is set to nuget Python installation, so it will have python.exe.
This commit is contained in:
+1
-1
@@ -810,7 +810,7 @@ IF "%QT6_TARGET_INSTALLED%"=="TRUE" IF "%QT6_HOST_INSTALLED%"=="TRUE" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
set AQT_PYTHON=python
|
set AQT_PYTHON=python
|
||||||
IF "%IFCOS_INSTALL_PYTHON%"=="TRUE" IF EXIST "%PYTHONHOME%\python.exe" set AQT_PYTHON="%PYTHONHOME%\python.exe"
|
IF "%IFCOS_INSTALL_PYTHON%"=="TRUE" set AQT_PYTHON="%PYTHONHOME%\python.exe"
|
||||||
|
|
||||||
%AQT_PYTHON% -m pip install --upgrade aqtinstall
|
%AQT_PYTHON% -m pip install --upgrade aqtinstall
|
||||||
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
||||||
|
|||||||
+1
-1
@@ -848,7 +848,7 @@ def install_qt6(
|
|||||||
mark_installation(QT6_INSTALL_DIR, build_cfg)
|
mark_installation(QT6_INSTALL_DIR, build_cfg)
|
||||||
return
|
return
|
||||||
|
|
||||||
if pythonhome is not None and (pythonhome / "python.exe").exists():
|
if pythonhome is not None:
|
||||||
AQT_PYTHON = str(pythonhome / "python.exe")
|
AQT_PYTHON = str(pythonhome / "python.exe")
|
||||||
else:
|
else:
|
||||||
AQT_PYTHON = require_command("python")
|
AQT_PYTHON = require_command("python")
|
||||||
|
|||||||
Reference in New Issue
Block a user