-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Force skip tweedledum 1.1.1 on macOS amd64 #8818
Conversation
There is no wheel for tweedledum 1.1.1 for M1 Mac, and attempting to compile from the sdist does not generally work. This has caused significant problems for our users in the past, and given we are moving to remove tweedledum as a core requirement, it's simplest just to add a constraint to make life easier for users in the interrim.
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 3162816322
💛 - 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.
This makes sense to me, people should be able to use the --prefer-binary
flag on pip to avoid this issue. But this issues seems to be common enough for people actively guarding against it makes sense.
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
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.
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 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. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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
There is no wheel for tweedledum 1.1.1 for M1 Mac, and attempting to compile from the sdist does not generally work. This has caused significant problems for our users in the past, and given we are moving to remove tweedledum as a core requirement, it's simplest just to add a constraint to make life easier for users in the interrim.
Details and comments
Fix #8716