-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Isolate macOS wheel builds from Homebrew #8497
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
Changes from 1 commit
0fe55d6
fc35fcc
00809a2
06dbfed
5a8373e
140a06e
0961d3d
43c34fc
3e4be4b
0855468
8308bf3
c74a5bd
72d81e2
ec214e4
d1a4f80
6d13704
467f120
c6912f8
96ae15c
01270b5
51e3623
e82b539
904416b
4e35852
681a03b
378df7a
9dc6904
0e3eb70
54f2334
96b898c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,13 +1,24 @@ | ||||||
#!/bin/bash | ||||||
set -e | ||||||
|
||||||
# For Unix, ensure fribidi is installed by the system. | ||||||
if [[ "$OSTYPE" != "darwin"* ]]; then | ||||||
if [ "${AUDITWHEEL_POLICY::9}" == "musllinux" ]; then | ||||||
apk add curl fribidi | ||||||
# Ensure fribidi is installed by the system. | ||||||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||||||
# If Homebrew is on the path during the build, it may leak into the wheels. | ||||||
# However, we need a *do* need Homebrew to provide a copy of fribidi for | ||||||
# testing purposes so that we can verify the fribidi shim works as expected. | ||||||
if [[ "$(uname -m)" == "x86_64" ]]; then | ||||||
HOMEBREW_HOME=/usr/local/homebrew | ||||||
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.
Suggested change
I would have thought just '/usr/local', based on https://docs.brew.sh/Installation
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. Turns out both work (for 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 take that back - it does matter (and making this change caused test failures on x86_64). Firstly, it's possible for homebrew to have packages installed, but not linked. Using the Secondly, it's possible for other libraries to be in |
||||||
else | ||||||
yum install -y fribidi | ||||||
HOMEBREW_HOME=/opt/homebrew | ||||||
fi | ||||||
$HOMEBREW_HOME/bin/brew install fribidi | ||||||
|
||||||
# Add the Homebrew lib folder so that vendored libraries can be found. | ||||||
export DYLD_LIBRARY_PATH=$HOMEBREW_HOME/lib | ||||||
elif [ "${AUDITWHEEL_POLICY::9}" == "musllinux" ]; then | ||||||
apk add curl fribidi | ||||||
else | ||||||
yum install -y fribidi | ||||||
fi | ||||||
|
||||||
python3 -m pip install numpy | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -454,7 +454,7 @@ def _remove_extension(self, name: str) -> None: | |
def get_macos_sdk_path(self) -> str | None: | ||
try: | ||
sdk_path = ( | ||
subprocess.check_output(["xcrun", "--show-sdk-path"]) | ||
subprocess.check_output(["xcrun", "--show-sdk-path", "--sdk", "macosx"]) | ||
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. What was the reason for this change? 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. Explicitness. Xcode can manage multiple SDKs (iOS being an obvious one); adding the explicit |
||
.strip() | ||
.decode("latin1") | ||
) | ||
|
Uh oh!
There was an error while loading. Please reload this page.