1+ @ echo off
2+ REM This script was copied from PythonQwt project
3+ REM ======================================================
4+ REM Package build script
5+ REM ======================================================
6+ REM Licensed under the terms of the MIT License
7+ REM Copyright (c) 2020 Pierre Raybaut
8+ REM (see PythonQwt LICENSE file for more details)
9+ REM ======================================================
10+ setlocal enabledelayedexpansion
11+ call %~dp0 utils GetScriptPath SCRIPTPATH
12+ call %FUNC% GetModName MODNAME
13+ call %FUNC% SetPythonPath
14+
15+ if exist MANIFEST ( del /q MANIFEST )
16+ :: Iterate over all directories in the grandparent directory
17+ :: (WinPython base directories)
18+ call %FUNC% GetPythonExeGrandParentDir DIR0
19+ for /D %%d in (" %DIR0% *" ) do (
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+ set OLD_PATH = !PATH!
28+ call !WINPYDIRBASE! \scripts\env.bat
29+ echo ******************************************************************************
30+ echo Building %MODNAME% from " %%d "
31+ echo ******************************************************************************
32+ python setup.py build bdist_wheel
33+ echo ----
34+ set PATH = !OLD_PATH!
35+ )
36+ )
37+ )
38+ call %FUNC% EndOfScript
0 commit comments