From 67d31a51c68c5dd076bf87ceabfbfa6c5bc1374f Mon Sep 17 00:00:00 2001 From: Paul Armstrong Date: Fri, 27 May 2022 16:55:23 +0100 Subject: science/libtensorflow1: Add new port C API for TensorFlow, an open source platform for machine learning TensorFlow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries, and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML-powered applications. The TensorFlow C API is typically a requirement of TensorFlow APIs in other languages such as Go and Rust. This is version 1 of the API, which is deprecated but still widely used. PR: ports/260694 Improved by: delphij --- science/libtensorflow1/files/patch-configure.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 science/libtensorflow1/files/patch-configure.py (limited to 'science/libtensorflow1/files/patch-configure.py') diff --git a/science/libtensorflow1/files/patch-configure.py b/science/libtensorflow1/files/patch-configure.py new file mode 100644 index 000000000000..26abc48aad9d --- /dev/null +++ b/science/libtensorflow1/files/patch-configure.py @@ -0,0 +1,11 @@ +--- configure.py.orig 2021-01-04 20:18:42 UTC ++++ configure.py +@@ -475,7 +475,7 @@ def check_bazel_version(min_version, max_version): + print('Cannot find bazel. Please install bazel.') + sys.exit(0) + curr_version = run_shell( +- ['bazel', '--batch', '--bazelrc=/dev/null', 'version']) ++ ['bazel', '--batch', '--output_user_root=/tmp/.bazel', '--bazelrc=/dev/null', 'version']) + + for line in curr_version.split('\n'): + if 'Build label: ' in line: -- cgit v1.2.3