Skip to content

Commit

Permalink
fix venv mac
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpoluektov committed Nov 27, 2023
1 parent 74132ef commit 93af420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,12 @@ pipeline {
sh "chmod +x bazelisk-darwin-arm64"
sh "./bazelisk-darwin-arm64 build //:xcore-opt --cpu=darwin_arm64 --copt=-fvisibility=hidden --copt=-mmacosx-version-min=11.0 --linkopt=-mmacosx-version-min=11.0 --linkopt=-dead_strip --//:disable_version_check"
}
dir("python") {
sh "python -m venv venv"
sh ". .venv/bin/activate"
createVenv("requirements.txt")
dir("python") { withVenv {
sh "pip install wheel setuptools setuptools-scm numpy six --no-cache-dir"
sh "python setup.py bdist_wheel --plat-name macosx_11_0_arm64"
sh "deactivate"
stash name: "mac_arm_wheel", includes: "dist/*"
}
} }
}
post { cleanup { xcoreCleanSandbox() } }
}
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

# Doesn't work on x86 macs: latest version is 2.11?
tensorflow==2.14.0; sys_platform != 'darwin' and platform_machine != 'arm64'
tensorflow-macos==2.14.0; sys_platform == 'darwin' # and platform_machine == 'arm64'
# https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.14.0-cp311-cp311-macosx_10_15_x86_64.whl; sys_platform == 'darwin' and platform_machine != 'arm64'
tensorflow-macos==2.14.0; sys_platform == 'darwin'
numpy>=1.20
pkgconfig==1.5.5
protobuf>=3.20.3
Expand Down

0 comments on commit 93af420

Please sign in to comment.