Skip to content

Commit

Permalink
fix msys build
Browse files Browse the repository at this point in the history
build the sdist and wheel using "build", avoid using setup.py.

use "pip install -e ." before invoking pyinstaller, so we have
the _version.py built by setuptools_scm and also it compiled the
extension modules, so pyinstaller can pick them up.
  • Loading branch information
ThomasWaldmann committed Dec 24, 2023
1 parent 5919b63 commit 6b85bda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/msys2-build
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

python setup.py build_ext --inplace
python setup.py bdist_wheel
# build sdist and wheel in dist/...
python -m build

# build borg.exe
pip install -e .
pyinstaller -y scripts/borg.exe.spec

0 comments on commit 6b85bda

Please sign in to comment.