From a176e0f981396fcbb5ffe79004e44ddf7e8dc918 Mon Sep 17 00:00:00 2001 From: Tim Paine Date: Tue, 16 Jul 2024 10:06:00 -0400 Subject: [PATCH] Don't install runtime dependencies in-place Signed-off-by: Tim Paine --- .github/workflows/build.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ebc00dcff..2fa3d75ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -522,7 +522,9 @@ jobs: if: ${{ runner.os == 'Linux' }} - name: Install wheel (Linux) - run: python -m pip install -U *manylinux*.whl --target . + run: | + python -m pip install -U *manylinux*.whl + python -m pip install -U --no-deps *manylinux*.whl --target . if: ${{ runner.os == 'Linux' }} ######## @@ -533,11 +535,15 @@ jobs: if: ${{ runner.os == 'macOS' }} - name: Install wheel (OSX x86) - run: python -m pip install -U *x86*.whl --target . + run: | + python -m pip install -U *x86*.whl + python -m pip install -U --no-deps *x86*.whl --target . if: ${{ runner.os == 'macOS' && runner.arch == 'X64' }} - name: Install wheel (OSX arm) - run: python -m pip install -U *arm64*.whl --target . + run: | + python -m pip install -U *arm64*.whl + python -m pip install -U --no-deps *arm64*.whl --target . if: ${{ runner.os == 'macOS' && runner.arch == 'ARM64' }} ######## @@ -547,7 +553,9 @@ jobs: if: ${{ runner.os == 'Windows' }} - name: Install wheel (windows) - run: python -m pip install -U (Get-ChildItem .\*.whl | Select-Object -Expand FullName) --target . + run: | + python -m pip install -U (Get-ChildItem .\*.whl | Select-Object -Expand FullName) + python -m pip install -U --no-deps (Get-ChildItem .\*.whl | Select-Object -Expand FullName) --target . if: ${{ runner.os == 'Windows' }} ########## @@ -615,7 +623,9 @@ jobs: path: dist/ - name: Install sdist - run: python -m pip install -U -vvv dist/csp*.tar.gz --target . + run: | + python -m pip install -U -vvv dist/csp*.tar.gz + python -m pip install -U --no-deps -vvv dist/csp*.tar.gz --target . env: CCACHE_DIR: /home/runner/work/csp/csp/.ccache VCPKG_DEFAULT_BINARY_CACHE: /home/runner/vcpkg_cache @@ -690,7 +700,9 @@ jobs: name: csp-dist-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }} - name: Install wheel - run: python -m pip install -U *manylinux*.whl --target . + run: | + python -m pip install -U *manylinux*.whl + python -m pip install -U --no-deps *manylinux*.whl --target . - name: Install package - ${{ matrix.package }} run: python -m pip install -U "${{ matrix.package }}"