From abb3cd00e002392660bd4044a292a65340627dc1 Mon Sep 17 00:00:00 2001 From: mumra Date: Thu, 2 May 2024 21:08:40 +0100 Subject: [PATCH] Break system packages (fix MacOS build) To fix an error running new version of pip3 in virtualised environments. > You may restore the old behavior of pip by passing > the '--break-system-packages' flag to pip, or by adding > 'break-system-packages = true' to your pip.conf file. The latter > will permanently disable this error. > If you disable this error, we STRONGLY recommend that you additionally > pass the '--user' flag to pip, or set 'user = true' in your pip.conf > file. Failure to do this can result in a broken Homebrew installation. https://peps.python.org/pep-0668/ --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f7ca107129..bd44283e503 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -337,8 +337,17 @@ jobs: - name: Install Dependencies run: | brew install pkg-config libpng + # To fix an error running new version of pip3 in virtualised environments. + # > You may restore the old behavior of pip by passing + # > the '--break-system-packages' flag to pip, or by adding + # > 'break-system-packages = true' to your pip.conf file. The latter + # > will permanently disable this error. + # > If you disable this error, we STRONGLY recommend that you additionally + # > pass the '--user' flag to pip, or set 'user = true' in your pip.conf + # > file. Failure to do this can result in a broken Homebrew installation. + # https://peps.python.org/pep-0668/ - name: Install pyyaml - run: pip3 install pyyaml + run: pip3 install pyyaml --break-system-packages --user - name: diagnostic run: | echo $PATH