-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154684 from ZhongRuoyu/bump-tbb-2021.11.0
tbb 2021.11.0
- Loading branch information
Showing
2 changed files
with
27 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
class Tbb < Formula | ||
desc "Rich and complete approach to parallelism in C++" | ||
homepage "https://github.com/oneapi-src/oneTBB" | ||
url "https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.10.0.tar.gz" | ||
sha256 "487023a955e5a3cc6d3a0d5f89179f9b6c0ae7222613a7185b0227ba0c83700b" | ||
url "https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.11.0.tar.gz" | ||
sha256 "782ce0cab62df9ea125cdea253a50534862b563f1d85d4cda7ad4e77550ac363" | ||
license "Apache-2.0" | ||
|
||
bottle do | ||
sha256 cellar: :any, arm64_sonoma: "82aedbedc4f01d9e859ec0c0702a04cd61c300c9e6941239e8eae120eff4bd57" | ||
sha256 cellar: :any, arm64_ventura: "111d9a40d50f16615cfa8d543aba48d55482b4b234154a172309bf62c5a5d2d6" | ||
sha256 cellar: :any, arm64_monterey: "beefab871bae0c31c9ced93653db9f3d4ee0e77c708252aae7a395560bd8e8ff" | ||
sha256 cellar: :any, arm64_big_sur: "e4d19bdf3991e80b81217bd45f770acab8841f1701a004ece15d2e581b34e2d3" | ||
sha256 cellar: :any, sonoma: "eb9180328e0efdc0426cbb08ca79d736c2796c68f9d260a43cf5406409201968" | ||
sha256 cellar: :any, ventura: "54c8bbc3954d70aaa5c37ff01c64e4d5873c96f9f9c87442e13d11c00e5a6436" | ||
sha256 cellar: :any, monterey: "18759017f100a1a974c7126577d06ce8a18fcc0b4ae0d448c692b7d38ac6db93" | ||
sha256 cellar: :any, big_sur: "ea0fbb62658f0179c96b309eafe7068434c131bf89926f02f9e89c7daf5a0de5" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "6071625843f701c8a904882b90f647ab0e7307656bec78f4066430639b1b866a" | ||
sha256 cellar: :any, arm64_sonoma: "54cfc46133d37fade8f3404d4be73127527cad56dc8212fd887885cc9440f613" | ||
sha256 cellar: :any, arm64_ventura: "c11a0e3e69cab1208064730e23f3c5b16e85755ec3067772c5a07dc773b8df8f" | ||
sha256 cellar: :any, arm64_monterey: "9fd02a5e37c68c94315a89c194595d5f1b8d5faad760d2848c56f37deebbe182" | ||
sha256 cellar: :any, sonoma: "463e36411facadf4fe22376cc124dca6d69f46659635bdceb3609a147181f6ea" | ||
sha256 cellar: :any, ventura: "2c361a6bc460ad91b491ee27e25402749d346f80878d7ff97148e41ff049854f" | ||
sha256 cellar: :any, monterey: "9dcd86957cfa389c4d9c70794a0da08b2a5b623b1f465a7ed958f4a3b7da9b88" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "a76dd7893a0959e0b82dc2abf0e24c27ead22f574cf272a593cb5ba374242b4a" | ||
end | ||
|
||
depends_on "cmake" => :build | ||
depends_on "[email protected]" => [:build, :test] | ||
depends_on "python-setuptools" => :build | ||
depends_on "[email protected]" => [:build, :test] | ||
depends_on "swig" => :build | ||
|
||
on_linux do | ||
|
@@ -31,12 +30,12 @@ class Tbb < Formula | |
patch :DATA | ||
|
||
def python3 | ||
"python3.11" | ||
"python3.12" | ||
end | ||
|
||
def install | ||
# Prevent `setup.py` from installing tbb4py directly into HOMEBREW_PREFIX. | ||
# We need this due to our `[email protected]` patch. | ||
# We need this due to our Python patch. | ||
site_packages = Language::Python.site_packages(python3) | ||
inreplace "python/CMakeLists.txt", "@@SITE_PACKAGES@@", site_packages | ||
|
||
|
@@ -67,11 +66,6 @@ def install | |
|
||
system python3, "-m", "pip", "install", *std_pip_args, "." | ||
end | ||
|
||
return unless OS.linux? | ||
|
||
inreplace_files = prefix.glob("rml/CMakeFiles/irml.dir/{flags.make,build.make,link.txt}") | ||
inreplace inreplace_files, Superenv.shims_path/ENV.cxx, ENV.cxx | ||
end | ||
|
||
test do | ||
|
@@ -136,23 +130,24 @@ def install | |
|
||
__END__ | ||
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt | ||
index 1d2b05f..81ba8de 100644 | ||
index 748921a5..d03fdc6f 100644 | ||
--- a/python/CMakeLists.txt | ||
+++ b/python/CMakeLists.txt | ||
@@ -40,7 +40,7 @@ add_custom_target( | ||
${PYTHON_EXECUTABLE} ${PYTHON_BUILD_WORK_DIR}/setup.py | ||
build -b${PYTHON_BUILD_WORK_DIR} | ||
build_ext ${TBB4PY_INCLUDE_STRING} -L$<TARGET_FILE_DIR:TBB::tbb> | ||
- install --prefix ${PYTHON_BUILD_WORK_DIR}/build -f | ||
+ install --prefix ${PYTHON_BUILD_WORK_DIR}/build --install-lib ${PYTHON_BUILD_WORK_DIR}/build/@@SITE_PACKAGES@@ -f | ||
- install --prefix build -f | ||
+ install --prefix build --install-lib ${PYTHON_BUILD_WORK_DIR}/build/@@SITE_PACKAGES@@ -f | ||
COMMENT "Build and install to work directory the oneTBB Python module" | ||
) | ||
|
||
@@ -49,7 +49,7 @@ add_test(NAME python_test | ||
@@ -50,7 +50,7 @@ add_test(NAME python_test | ||
-DPYTHON_MODULE_BUILD_PATH=${PYTHON_BUILD_WORK_DIR}/build | ||
-P ${PROJECT_SOURCE_DIR}/cmake/python/test_launcher.cmake) | ||
|
||
-install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${PYTHON_BUILD_WORK_DIR}/build/ | ||
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${PYTHON_BUILD_WORK_DIR}/ | ||
DESTINATION . | ||
COMPONENT tbb4py) | ||
|