diff --git a/scripts/msys2-build b/scripts/msys2-build index 9f6ff5204..377d879a3 100644 --- a/scripts/msys2-build +++ b/scripts/msys2-build @@ -1,5 +1,8 @@ #!/bin/bash -python setup.py build_ext --inplace -python setup.py bdist_wheel +# build borg.exe +SETUPTOOLS_USE_DISTUTILS=stdlib pip install -e . pyinstaller -y scripts/borg.exe.spec + +# build sdist and wheel in dist/... +SETUPTOOLS_USE_DISTUTILS=stdlib python -m build diff --git a/scripts/msys2-install-deps b/scripts/msys2-install-deps index 637008a43..a9a20f678 100644 --- a/scripts/msys2-install-deps +++ b/scripts/msys2-install-deps @@ -1,4 +1,4 @@ #!/bin/bash -pacman -S --needed --noconfirm git mingw-w64-ucrt-x86_64-{toolchain,pkgconf,zstd,lz4,xxhash,openssl,python,cython,python-setuptools,python-wheel,python-pkgconfig,python-packaging,python-msgpack,python-pip} +pacman -S --needed --noconfirm git mingw-w64-ucrt-x86_64-{toolchain,pkgconf,zstd,lz4,xxhash,openssl,python,cython,python-setuptools,python-wheel,python-build,python-pkgconfig,python-packaging,python-msgpack,python-pip} pip install pyinstaller==5.13.2