-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[master] Allow Homebrew package manager in all systems but Windows #66609
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Allow mac_brew_pkg to be used in systems different from macOS |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,6 +231,14 @@ def is_aarch64(): | |
return platform.machine().startswith("aarch64") | ||
|
||
|
||
@real_memoize | ||
def is_arm64(): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not really sure about adding this new method instead of modifying the existing return re.search(r'^(aarch|arm)64', platform.machine()) is not None I think my initial approach is more conservative, since I'm not modifying the current behavior of the TL;DR: Aarch64 is how the LLVM community refers to this architecture while Apple calls it ARM64. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would like to ask the opinion of @s0undt3ch and @krionbsd. Since Kirill implemented the original |
||
""" | ||
Simple function to return if host is ARM64 or not | ||
""" | ||
return platform.machine().startswith("arm64") | ||
|
||
|
||
def spawning_platform(): | ||
""" | ||
Returns True if multiprocessing.get_start_method(allow_none=False) returns "spawn" | ||
|
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.
I've tried using grains, but
rsax931.py
uses this method to load openssl library. However, it fails since, apparently, grains are not loaded yet or they are not defined.