Changeset b37e2b2
- Timestamp:
- May 10, 2017, 10:25:13 AM (7 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- c290245
- Parents:
- 21eb4c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/setenv_local.sh
r21eb4c2 rb37e2b2 1 1 #! /usr/bin/env bash 2 2 3 # This script sets the environment to execute aubio binaries and python code 4 # directly from build/ python/build/ without installing libaubio on the system 5 6 # Usage: $ source ./scripts/setenv_local.sh 7 8 # WARNING: this script will *overwrite* existing (DY)LD_LIBRARY_PATH and 9 # PYTHONPATH variables. 10 11 PYTHON_PLATFORM=`python -c "import pkg_resources, sys; print ('%s-%s' % (pkg_resources.get_build_platform(), '.'.join(map(str, sys.version_info[0:2]))))"` 3 # This script sets the LD_LIBRARY_PATH environment variable to ./build/src to 4 # execute aubio binaries without installing libaubio. 5 # 6 # Usage: $ source scripts/setenv_local.sh 7 # 8 # Note: on macOs, the variable is DYLD_LIBRARY_PATH 12 9 13 10 AUBIODIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" 11 14 12 AUBIOLIB=$AUBIODIR/build/src 15 AUBIOPYTHON=$AUBIODIR/build/lib.$PYTHON_PLATFORM16 17 if [ "$(dirname $PWD)" == "scripts" ]; then18 AUBIODIR=$(basename $PWD)19 else20 AUBIODIR=$(basename $PWD)21 fi22 13 23 14 if [ "$(uname)" == "Darwin" ]; then … … 28 19 echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH 29 20 fi 30 31 export PYTHONPATH=$AUBIOPYTHON32 echo export PYTHONPATH=$PYTHONPATH
Note: See TracChangeset
for help on using the changeset viewer.