freebsd-ports/science/py-tensorflow/files/bazel/freebsd_python_fix.patch
Anthony Donnelly 56dc0e449f science/py-tensorflow: Update 1.15.5 -> 2.9.1
Big thank you to Anthony Donnelly for updating this difficult port.

PR:		266303
2022-09-13 13:32:36 -07:00

11 lines
542 B
Diff

--- a/utils/bazel/configure.bzl 2022-08-27 19:11:41.138993000 +0100
+++ b/utils/bazel/configure.bzl 2022-08-27 19:12:07.525186000 +0100
@@ -37,7 +37,7 @@
overlay_path = bazel_path.get_child("llvm-project-overlay")
script_path = bazel_path.get_child("overlay_directories.py")
- python_bin = repository_ctx.which("python3")
+ python_bin = repository_ctx.which("%%PYTHON%%")
if not python_bin:
# Windows typically just defines "python" as python3. The script itself
# contains a check to ensure python3.