Skip to content

Commit 2551669

Browse files
committed
build_inplace.bat: avoid building with PyQt6/... platforms
1 parent 8001278 commit 2551669

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

scripts/build_inplace.bat

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,20 @@ if exist MANIFEST ( del /q MANIFEST )
1717
:: (WinPython base directories)
1818
call %FUNC% GetPythonExeGrandParentDir DIR0
1919
for /D %%d in ("%DIR0%*") do (
20-
set WINPYDIRBASE=%%d
21-
call !WINPYDIRBASE!\scripts\env.bat
22-
echo ******************************************************************************
23-
echo Building %MODNAME% from "%%d"
24-
echo ******************************************************************************
25-
python setup.py build_ext --inplace
26-
echo ----
20+
:: Get the directory name without the path
21+
for %%n in (%%d) do set "DIRNAME=%%~nxn"
22+
23+
:: Check if the directory ends with "-PyQt6" or "-PySide6"
24+
if not "!DIRNAME:~-6!"=="-PyQt6" (
25+
if not "!DIRNAME:~-8!"=="-PySide6" (
26+
set WINPYDIRBASE=%%d
27+
call !WINPYDIRBASE!\scripts\env.bat
28+
echo ******************************************************************************
29+
echo Building %MODNAME% from "%%d"
30+
echo ******************************************************************************
31+
python setup.py build_ext --inplace
32+
echo ----
33+
)
34+
)
2735
)
2836
call %FUNC% EndOfScript

0 commit comments

Comments
 (0)