summaryrefslogtreecommitdiff
path: root/science/libtensorflow1/files/patch-configure.py
diff options
context:
space:
mode:
authorPaul Armstrong <freebsd@otoh.org>2022-05-27 16:55:23 +0100
committerChris Rees <crees@FreeBSD.org>2022-06-10 20:04:30 +0100
commit67d31a51c68c5dd076bf87ceabfbfa6c5bc1374f (patch)
treef4af0385a35e5e2345ef6a4e0771e97c482fe65b /science/libtensorflow1/files/patch-configure.py
parentsecurity/suricata: improve plist handling after setuptools changes (diff)
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
Diffstat (limited to 'science/libtensorflow1/files/patch-configure.py')
-rw-r--r--science/libtensorflow1/files/patch-configure.py11
1 files changed, 11 insertions, 0 deletions
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: