Changeset b37e2b2


Ignore:
Timestamp:
May 10, 2017, 10:25:13 AM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
c290245
Parents:
21eb4c2
Message:

scripts/setenv_local.sh: clean up, only set LD_LIBRARY_PATH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/setenv_local.sh

    r21eb4c2 rb37e2b2  
    11#! /usr/bin/env bash
    22
    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
    129
    1310AUBIODIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
     11
    1412AUBIOLIB=$AUBIODIR/build/src
    15 AUBIOPYTHON=$AUBIODIR/build/lib.$PYTHON_PLATFORM
    16 
    17 if [ "$(dirname $PWD)" == "scripts" ]; then
    18   AUBIODIR=$(basename $PWD)
    19 else
    20   AUBIODIR=$(basename $PWD)
    21 fi
    2213
    2314if [ "$(uname)" == "Darwin" ]; then
     
    2819  echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
    2920fi
    30 
    31 export PYTHONPATH=$AUBIOPYTHON
    32 echo export PYTHONPATH=$PYTHONPATH
Note: See TracChangeset for help on using the changeset viewer.