From 767ee1cb25d2d4f0a3267bcd25cb1c7c1929b928 Mon Sep 17 00:00:00 2001 From: Dmitry Bogdanov Date: Thu, 14 Dec 2023 20:02:11 +0100 Subject: [PATCH] Rework wscript for algos' metadata (2) --- src/python/wscript | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/python/wscript b/src/python/wscript index 7d8c31fe6..f7f1ba8dd 100644 --- a/src/python/wscript +++ b/src/python/wscript @@ -77,7 +77,8 @@ def create_algo_metadata(task): ldpath = task.env.LIBPATH_ESSENTIA[0] else: ldpath = "../build/src" - + + # TODO Use DYLD_LIBRARY_PATH on MacOS command = """ echo "Precompute algorithms' help metadata (__doc__ and __struct__)" echo `pwd` @@ -87,10 +88,10 @@ rm -rf ../build/python mkdir -p ../build/python cp -r ../src/python/essentia ../build/python/ cp ../build/src/python/_essentia*.so ../build/python/essentia/ -cp %s/libessentia.so ../build/python/essentia/ +#cp %s/libessentia.{so,a} ../build/python/essentia/ -PYTHONPATH=../build/python LD_LIBRARY_PATH=../build/python/essentia %s -c '%s' +PYTHONPATH=../build/python LD_LIBRARY_PATH=%s %s -c '%s' set +x echo "Algorithms' metadata created" -""" % (ldpath, ldpath, sys.executable, python_code) +""" % (ldpath, ldpath, ldpath, sys.executable, python_code) task.exec_command(command)