Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure MacOS arm64 wheels are compatible with MacOS 12 and above #1359

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

cqc-alec
Copy link
Collaborator

@cqc-alec cqc-alec commented Apr 19, 2024

Description

This ensures that the dependencies (specifically the tklog and tket shared libraries) are built for MacOS 12 compatibility, so that delocate is happy.

Maybe we got away with not doing this before by sheer luck, or maybe this will actually fix some of the issues people have been having with installing pytket in conda environments.

Release workflow tested here.

Related issues

Closes #1344 .

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

@cqc-alec cqc-alec changed the title Feature/delocate Ensure MacOS arm64 wheels are compatible with MacOS 12 and above Apr 19, 2024
@cqc-alec cqc-alec requested a review from cqc-melf April 19, 2024 09:44
@cqc-alec cqc-alec marked this pull request as ready for review April 19, 2024 09:44
- name: Build wheel
run: |
conan create recipes/pybind11
conan create recipes/pybind11_json/all --version 0.2.13
cd pytket
# Ensure wheels are compatible with MacOS 12.0 and later:
export WHEEL_PLAT_NAME=macosx_12_0_arm64
python${{ matrix.python-version }} -m pip install -U pip build
python${{ matrix.python-version }} -m pip install delocate~=0.10.7
python${{ matrix.python-version }} -m pip install -U pip build delocate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have removed here the version constrains for delocate completely?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes -- the only reason for pinning to 0.10.7 was that 0.11 started doing extra checks for compatibility and so produced wheels that were only compatible with MacOS 14. But with this change, delocate 0.11 produces MacOS-12-compatible wheels.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1342 .

@cqc-alec cqc-alec requested a review from cqc-melf April 19, 2024 09:49
@cqc-alec cqc-alec merged commit 0288746 into develop Apr 19, 2024
64 checks passed
@cqc-alec cqc-alec deleted the feature/delocate branch April 19, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove constraint on delocate version
2 participants