From ed3aff737aa9d8e471f548455101a4e142a7eaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Haraldsson?= Date: Mon, 2 Mar 2020 19:18:54 +0000 Subject: [PATCH] Fix for recent version with links, not for macOS --- deps/build.jl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deps/build.jl b/deps/build.jl index 50978a3a..5cfb6ace 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -1,8 +1,8 @@ using PyCall using Conda -const cur_version = "1.13.1" -const cur_py_version = "1.13.1" +const cur_version = "1.15.0" +const cur_py_version = "1.15.0" ############################ @@ -20,7 +20,7 @@ end use_gpu = "TF_USE_GPU" ∈ keys(ENV) && ENV["TF_USE_GPU"] == "1" if Sys.isapple() && use_gpu - @warn("No support for TF_USE_GPU on OS X - to enable the GPU, build TensorFlow from source. Falling back to CPU") + @warn("No support for TF_USE_GPU on OS X - to enable the GPU, build TensorFlow from source. Falling back to CPU.") use_gpu=false end @@ -99,4 +99,8 @@ end download_and_unpack(url) mv("$lib_dir/libtensorflow.so", "usr/bin/libtensorflow.so", force=true) mv("$lib_dir/libtensorflow_framework.so", "usr/bin/libtensorflow_framework.so", force=true) + mv("$lib_dir/libtensorflow.so", "usr/bin/libtensorflow.so.1", force=true) + mv("$lib_dir/libtensorflow_framework.so", "usr/bin/libtensorflow_framework.so.$cur_version", force=true) + mv("$lib_dir/libtensorflow.so", "usr/bin/libtensorflow.so", force=true) + mv("$lib_dir/libtensorflow_framework.so", "usr/bin/libtensorflow_framework.so.$cur_version", force=true) end