Skip to content

Commit

Permalink
Rework wscript for algos' metadata (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbogdanov committed Dec 14, 2023
1 parent 29d35d5 commit 767ee1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/python/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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)

0 comments on commit 767ee1c

Please sign in to comment.