cython Cython bundling Automating build (Windows)

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!


For automation of the above procedure in Windows use a .bat of the similar contents:

del "main.exe"
python build_ext --inplace
del "*.c"
rmdir /s /q ".\build"
pyinstaller --onefile ""
copy /y ".\dist\main.exe" ".\main.exe"
rmdir /s /q ".\dist"
rmdir /s /q ".\build"
del "*.spec"
del "*.pyd"

Got any cython Question?