-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Remove tweedledum from macOS arm64 immediately #8849
Conversation
In Qiskitgh-8818 we prevented macOS arm64 from attempting to use tweedledum 1.1.1 as no arm64 wheels are supplied for that version. In fact, the "arm64" and "universal2" wheels supplied for 1.1.0 are actually mislabelled x86_64 wheels as well, and so there is no working binary version of tweedledum for arm64, and the sdist build process works only rarely for most people. Since the work of Qiskitgh-8738 makes `tweedledum` _effectively_ optional for `import qiskit` with immediate effect, and the only way to have a working installation on M1 mac is essentially to have already manually built `tweedledum` from source, the effects of immediately removing the requirement from arm64 macs only should be very slight at worst, and a good quality of life improvement for normal M1 users.
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 3205145905
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, after checking the wheels on pypi myself it looks like they're all x86_64 binaries. I think at this point this is the right call. So let's just remove the requirement for m1 mac in 0.22.0 and for 0.23.0 we remove it for everyone.
This commit fixes an oversight in Qiskit#8849 and Qiskit#8818 which made tweedledum optional for arm64 macOS systems which was the unittest suite still unconditionally depends on tweedledum being installed to run the classical function compiler tests. This commit fixes this by making the tests skip if tweedledum isn't installed so that M1 mac users are able to run the full test suite again.
* Skip classical function tests if tweedledum isn't present This commit fixes an oversight in #8849 and #8818 which made tweedledum optional for arm64 macOS systems which was the unittest suite still unconditionally depends on tweedledum being installed to run the classical function compiler tests. This commit fixes this by making the tests skip if tweedledum isn't installed so that M1 mac users are able to run the full test suite again. * Skip other tests requiring tweedledum
* Skip classical function tests if tweedledum isn't present This commit fixes an oversight in #8849 and #8818 which made tweedledum optional for arm64 macOS systems which was the unittest suite still unconditionally depends on tweedledum being installed to run the classical function compiler tests. This commit fixes this by making the tests skip if tweedledum isn't installed so that M1 mac users are able to run the full test suite again. * Skip other tests requiring tweedledum (cherry picked from commit 75fe9bb)
) * Skip classical function tests if tweedledum isn't present This commit fixes an oversight in #8849 and #8818 which made tweedledum optional for arm64 macOS systems which was the unittest suite still unconditionally depends on tweedledum being installed to run the classical function compiler tests. This commit fixes this by making the tests skip if tweedledum isn't installed so that M1 mac users are able to run the full test suite again. * Skip other tests requiring tweedledum (cherry picked from commit 75fe9bb) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
* Skip classical function tests if tweedledum isn't present This commit fixes an oversight in Qiskit#8849 and Qiskit#8818 which made tweedledum optional for arm64 macOS systems which was the unittest suite still unconditionally depends on tweedledum being installed to run the classical function compiler tests. This commit fixes this by making the tests skip if tweedledum isn't installed so that M1 mac users are able to run the full test suite again. * Skip other tests requiring tweedledum
…kit#8876) * Skip classical function tests if tweedledum isn't present This commit fixes an oversight in Qiskit/qiskit#8849 and Qiskit/qiskit#8818 which made tweedledum optional for arm64 macOS systems which was the unittest suite still unconditionally depends on tweedledum being installed to run the classical function compiler tests. This commit fixes this by making the tests skip if tweedledum isn't installed so that M1 mac users are able to run the full test suite again. * Skip other tests requiring tweedledum
Summary
In gh-8818 we prevented macOS arm64 from attempting to use tweedledum 1.1.1 as no arm64 wheels are supplied for that version. In fact, the "arm64" and "universal2" wheels supplied for 1.1.0 are actually mislabelled x86_64 wheels as well, and so there is no working binary version of tweedledum for arm64, and the sdist build process works only rarely for most people.
Since the work of gh-8738 makes
tweedledum
effectively optional forimport qiskit
with immediate effect, and the only way to have a working installation on M1 mac is essentially to have already manually builttweedledum
from source, the effects of immediately removing the requirement from arm64 macs only should be very slight at worst, and a good quality of life improvement for normal M1 users.Details and comments
See also #8716 (comment) and next reply.