From 43a9df8621fdec0bab5154433efa8fe4444be6a8 Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Thu, 14 Dec 2023 04:29:44 +0200 Subject: [PATCH] Fix CI pip externally-managed-environment error (#4360) * Add missing Makefile PHONY target * Add Dockerfile-CUDA vim modeline * Fix CI pip externally-managed-environment error --- Makefile | 1 + docker/build/x86_64/Dockerfile-CUDA | 2 ++ docker/ci/x86_64/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 555f03d1f..fc0b02179 100644 --- a/Makefile +++ b/Makefile @@ -142,6 +142,7 @@ stash-macapp: flags-release flags-pie stash # build-cc- targets should be run within the compiler docker container +.PHONY: build-cc-windows build-cc-windows: export GOOS := windows build-cc-windows: export GOARCH := amd64 build-cc-windows: export CC := x86_64-w64-mingw32-gcc diff --git a/docker/build/x86_64/Dockerfile-CUDA b/docker/build/x86_64/Dockerfile-CUDA index 7692c9c28..53ebb60c0 100644 --- a/docker/build/x86_64/Dockerfile-CUDA +++ b/docker/build/x86_64/Dockerfile-CUDA @@ -48,3 +48,5 @@ ENV NVIDIA_DRIVER_CAPABILITIES=video,utility ENV STASH_CONFIG_FILE=/root/.stash/config.yml EXPOSE 9999 ENTRYPOINT ["docker-entrypoint.sh", "stash"] + +# vim: ft=dockerfile diff --git a/docker/ci/x86_64/Dockerfile b/docker/ci/x86_64/Dockerfile index 343c3c4a6..b97fc9c06 100644 --- a/docker/ci/x86_64/Dockerfile +++ b/docker/ci/x86_64/Dockerfile @@ -13,7 +13,7 @@ FROM --platform=$TARGETPLATFORM alpine:latest AS app COPY --from=binary /stash /usr/bin/ RUN apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev \ && apk add --no-cache ca-certificates python3 py3-requests py3-requests-toolbelt py3-lxml py3-pip ffmpeg vips-tools ruby tzdata \ - && pip install mechanicalsoup cloudscraper bencoder.pyx \ + && pip install --user --break-system-packages mechanicalsoup cloudscraper bencoder.pyx \ && gem install faraday \ && apk del .build-deps ENV STASH_CONFIG_FILE=/root/.stash/config.yml