win-build.ps1 391 B

123456789101112131415161718
  1. # Build a wheel and single file executable
  2. # Configure the build environment
  3. & $PSScriptRoot\win-setup-build-env.ps1
  4. # Clean the old build
  5. python setup.py clean
  6. # Build the extension inplace
  7. python setup.py build_ext --inplace
  8. # Run pip install to install install_requires of borg.
  9. pip install -v -e .
  10. # Build the wheel
  11. python setup.py bdist_wheel
  12. pyinstaller -y scripts/borg.exe.spec