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

Update macOS support to run on arm64 #2334

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

tomkins
Copy link
Contributor

@tomkins tomkins commented Dec 14, 2024

Status

Ready for review

Description

Fixes #2333.

Updates pyproject.toml to install a later version of PyQt5 - but only for macOS. Slightly later versions provide arm64 wheels, which makes installing the development environment a lot easier.

As arm64 PyQt5 wheels are only available for slightly later versions - install the latest possible version for macOS (darwin), but leave Linux packages at the specific pinned version (so it keeps it in sync with Debian bookworm).

Happy to tweak this if needed, and I understand this isn't your primary target environment if the change isn't wanted.

Test Plan

  • Check that the development client works under macOS without x86_64 Homebrew (screenshot attached from me running it, it's not perfect UI wise - but it works)
  • Check that installing under Linux does not install different versions of packages - this should only impact macOS.
Screenshot 2024-12-14 at 21 28 34

Checklist

  • These changes should not need testing in Qubes
  • No update to the AppArmor profile is required for these changes
  • No database schema changes are needed

@tomkins tomkins requested a review from a team as a code owner December 14, 2024 22:19
@legoktm
Copy link
Member

legoktm commented Dec 20, 2024

Hi @tomkins,

Happy to tweak this if needed, and I understand this isn't your primary target environment if the change isn't wanted.

Thanks, it LGTM so I'll approve it once CI runs. None of the primary developers use macOS anymore, so support has been slowly bitrotting. That said, we're happy to receive patches to make macOS work as long as they don't really interfere with Linux usage.

And, let us know if there's anything we can do to make contributing to SecureDrop easier for you!

legoktm
legoktm previously approved these changes Dec 20, 2024
@legoktm legoktm added this pull request to the merge queue Dec 20, 2024
As arm64 PyQt5 wheels are only available for slightly later versions - install the latest possible version for macOS (darwin), but leave Linux packages at the specific pinned version
Copy link
Member

@legoktm legoktm left a comment

Choose a reason for hiding this comment

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

Needed to fix a merge conflict in poetry.lock...

@legoktm legoktm removed this pull request from the merge queue due to a manual request Dec 20, 2024
@legoktm legoktm enabled auto-merge December 20, 2024 01:40
@legoktm legoktm added this pull request to the merge queue Dec 20, 2024
Merged via the queue into freedomofpress:main with commit ba63e54 Dec 20, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

macOS development setup doesn't work without x86_64 Homebrew
2 participants