Skip to content

Commit

Permalink
Disable build-isolation for pyscard
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Oct 1, 2024
1 parent a0081ac commit f3047f4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ jobs:
# Export exact versions
poetry export --without-hashes > requirements.txt
grep cryptography requirements.txt > cryptography.txt
grep cffi requirements.txt > source-reqs.txt
grep pyscard requirements.txt >> source-reqs.txt
grep cffi requirements.txt > cffi-reqs.txt
grep pyscard requirements.txt > pyscard-reqs.txt
# Remove non-universal packages
poetry run pip uninstall -y cryptography cffi pyscard
# Build cffi from source to get universal build
poetry run pip install --upgrade -r cffi-reqs.txt --no-binary :all:
# Install swig from wheel
poetry run pip install swig
# Build cffi from source to get universal build
poetry run pip install --upgrade -r source-reqs.txt --no-binary :all:
# Build pyscard from source to get universal build
poetry run pip install --upgrade -r pyscard-reqs.txt --no-binary :all: --no-build-isolation
# Explicitly install pre-build universal build of cryptography
poetry run pip download -r cryptography.txt --platform macosx_10_12_universal2 --only-binary :all: --no-deps --dest .
poetry run pip install -r cryptography.txt --no-cache-dir --no-index --find-links .
Expand Down

0 comments on commit f3047f4

Please sign in to comment.