File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,20 @@ if exist MANIFEST ( del /q MANIFEST )
1717:: (WinPython base directories)
1818call %FUNC% GetPythonExeGrandParentDir DIR0
1919for /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)
2836call %FUNC% EndOfScript
You can’t perform that action at this time.
0 commit comments