1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-10 22:24:13 +00:00

Merge pull request #8395 from ThomasWaldmann/msys-updates

msys2: disable SETUPTOOLS_USE_DISTUTILS=stdlib hack
This commit is contained in:
TW 2024-09-19 13:29:21 +02:00 committed by GitHub
commit 8d37c00f7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -202,7 +202,8 @@ jobs:
needs: linux
env:
SETUPTOOLS_USE_DISTUTILS: stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues
# Needed for setuptools < 70.2.0 to work, see: https://www.msys2.org/docs/python/#known-issues
# SETUPTOOLS_USE_DISTUTILS: stdlib
PY_COLORS: 1
defaults:
@ -222,10 +223,10 @@ jobs:
- name: Build
run: |
# build borg.exe
SETUPTOOLS_USE_DISTUTILS=stdlib pip install -e .
pip install -e .
pyinstaller -y scripts/borg.exe.spec
# build sdist and wheel in dist/...
SETUPTOOLS_USE_DISTUTILS=stdlib python -m build
python -m build
- uses: actions/upload-artifact@v4
with:
name: borg-windows

View file

@ -350,7 +350,8 @@ Ensure to install the dependencies as described within :ref:`Dependencies: Windo
::
export SETUPTOOLS_USE_DISTUTILS=stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues
# Needed for setuptools < 70.2.0 to work - https://www.msys2.org/docs/python/#known-issues
# export SETUPTOOLS_USE_DISTUTILS=stdlib
pip install -e .
pyinstaller -y scripts/borg.exe.spec