From 4945533f3a565287c078aae93ce24b2e2116c3bd Mon Sep 17 00:00:00 2001 From: jiangxinglei Date: Mon, 3 Jun 2024 18:51:39 +0800 Subject: [PATCH] change version --- core/BUILD | 7 +++++++ setup.py | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/BUILD b/core/BUILD index af5ea2e..cd33202 100644 --- a/core/BUILD +++ b/core/BUILD @@ -145,5 +145,12 @@ cc_binary( "@boost//:random", "@boost//:iostreams", ], + linkopts = [ + "-Wl,-rpath,$$ORIGIN/../libs", + "-Wl,-rpath,$$ORIGIN/../../../../../lib", + "-Wl,-rpath,$$ORIGIN/../../tensorflow", + "-Wl,-rpath,$$ORIGIN/../../tensorflow/python" + ], + linkshared = 1, ) diff --git a/setup.py b/setup.py index b31083d..12812d6 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ import os from setuptools import setup, find_packages +from importlib.machinery import SourceFileLoader -version = "0.13.0.dev0" +# use importlib to avoid import so file +_version = SourceFileLoader('version', 'tensornet/version.py').load_module() +version = _version.VERSION setup( name='qihoo-tensornet',