Skip to content

Commit fcfac13

Browse files
committed
Workaround to find MacOS SDK paths
1 parent a070cda commit fcfac13

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject-tensorflow.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ before-build = [
3333
"brew link --overwrite ffmpeg@2.8",
3434
# Delocate checks for the min OS version (LC_BUILD_VERSION or C_VERSION_MIN_MACOSX).
3535
# Tensorflow bottle a has minimum target of 14.2 which is too new, therefore, building from source.
36+
# Workaroud to SDK not being found: https://github.com/actions/runner-images/issues/9811
37+
"sudo xcode-select -s /Library/Developer/CommandLineTools",
3638
"SDKROOT=$(xcrun --sdk macosx13.0 --show-sdk-path) brew install --build-from-source tensorflow",
3739
#"brew tap MTG/essentia",
3840
#"brew install gaia --HEAD",
@@ -60,6 +62,8 @@ before-build = [
6062
"brew link --overwrite ffmpeg@2.8",
6163
# Delocate checks for the min OS version (LC_BUILD_VERSION or C_VERSION_MIN_MACOSX).
6264
# Tensorflow bottle has a minumum target of 15.2, which is too new, therefore, building from source.
65+
# Workaroud to SDK not being found: https://github.com/actions/runner-images/issues/9811
66+
"sudo xcode-select -s /Library/Developer/CommandLineTools",
6367
"SDKROOT=$(xcrun --sdk macosx14.0 --show-sdk-path) brew install --build-from-source tensorflow",
6468
# Override VIRTUAL_ENV set by cibuildwheel to ensure global install
6569
"VIRTUAL_ENV=/usr/local python waf configure --with-tensorflow --pkg-config-path=\"${PKG_CONFIG_PATH}\" --arch arm64 --no-msse",

0 commit comments

Comments
 (0)