Skip to content

Commit

Permalink
Merge pull request #8395 from ThomasWaldmann/msys-updates
Browse files Browse the repository at this point in the history
msys2: disable SETUPTOOLS_USE_DISTUTILS=stdlib hack
  • Loading branch information
ThomasWaldmann authored Sep 19, 2024
2 parents 11b72ef + 4c1a0b1 commit 8d37c00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8d37c00

Please sign in to comment.