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

Force skip tweedledum 1.1.1 on macOS amd64 #8818

Merged
merged 3 commits into from
Oct 1, 2022

Conversation

jakelishman
Copy link
Member

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

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.
@jakelishman jakelishman added the Changelog: None Do not include in changelog label Sep 30, 2022
@jakelishman jakelishman requested a review from a team as a code owner September 30, 2022 12:04
@qiskit-bot
Copy link
Collaborator

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:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Sep 30, 2022

Pull Request Test Coverage Report for Build 3162816322

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 33 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.04%) to 84.578%

Files with Coverage Reduction New Missed Lines %
src/optimize_1q_gates.rs 1 95.16%
qiskit/extensions/quantum_initializer/squ.py 2 79.78%
qiskit/pulse/library/waveform.py 3 91.49%
src/results/marginalization.rs 27 58.05%
Totals Coverage Status
Change from base Build 3162816182: 0.04%
Covered Lines: 61537
Relevant Lines: 72758

💛 - Coveralls

Copy link
Member

@mtreinish mtreinish left a 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.

@jakelishman
Copy link
Member Author

@Mergifyio requeue

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2022

requeue

✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically

@mergify mergify bot merged commit 90eec42 into Qiskit:main Oct 1, 2022
@jakelishman jakelishman deleted the tweedledum-constraint branch October 4, 2022 12:05
jakelishman added a commit to jakelishman/qiskit-terra that referenced this pull request Oct 6, 2022
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.
mergify bot added a commit that referenced this pull request Oct 7, 2022
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>
mtreinish added a commit to mtreinish/qiskit-core that referenced this pull request Oct 11, 2022
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.
mergify bot pushed a commit that referenced this pull request Oct 12, 2022
* 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
mergify bot pushed a commit that referenced this pull request Oct 12, 2022
* 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)
mergify bot added a commit that referenced this pull request Oct 12, 2022
)

* 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>
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Jun 27, 2023
* 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
ElePT pushed a commit to ElePT/qiskit-algorithms-test that referenced this pull request Jul 17, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

M1 install issue due to tweedledum
4 participants