Skip to content

Commit

Permalink
Don't install runtime dependencies in-place
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Paine <[email protected]>
  • Loading branch information
timkpaine committed Jul 16, 2024
1 parent 7514eff commit 9ac8a9e
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --no-deps *manylinux*.whl --target .
if: ${{ runner.os == 'Linux' }}

########
Expand All @@ -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 --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 --no-deps *arm64*.whl --target .
if: ${{ runner.os == 'macOS' && runner.arch == 'ARM64' }}

########
Expand All @@ -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 --no-deps (Get-ChildItem .\*.whl | Select-Object -Expand FullName) --target .
if: ${{ runner.os == 'Windows' }}

##########
Expand Down Expand Up @@ -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 --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
Expand Down Expand Up @@ -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 --no-deps *manylinux*.whl --target .
- name: Install package - ${{ matrix.package }}
run: python -m pip install -U "${{ matrix.package }}"
Expand Down

0 comments on commit 9ac8a9e

Please sign in to comment.