Changeset 36132
- Timestamp:
- 2022-04-07T16:47:09+12:00 (2 years ago)
- Location:
- gs3-extensions/structured-audio/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/structured-audio/trunk/CREATE-VENV-PYTHON3.sh
r36131 r36132 1 1 #!/bin/bash 2 3 #source ./devel.bash4 2 5 3 source ./setup.bash … … 20 18 echo "* source \"$GEXT_STRUCTURED_AUDIO_INSTALLED/virtualenv-python3/bin/activate\"" 21 19 echo "*" 22 echo "* Then install the following Python module swith:"23 echo "* pip install six sklearn matplotlib"20 echo "* Then install the following Python module(s) with:" 21 echo "* pip install pyannote" 24 22 echo "****" 25 23 -
gs3-extensions/structured-audio/trunk/SETUP-TOP-LEVEL.sh
r36131 r36132 1 1 2 _full_pyver_=$(python -V 2>&1 | grep -Po '(?<=Python )(.+)')2 _full_pyver_=$(python3 -V 2>&1 | grep -Po '(?<=Python )(.+)') 3 3 _majorminor_pyver_=${_full_pyver_%.*} 4 4 … … 20 20 echo "! Then: " >&2 21 21 fi 22 echo "! pip install $1" >&2 22 23 if [ "$1" = "pyannote" ] ; then 24 echo "! pip install https://github.com/pyannote/pyannote-audio/archive/develop.zip" >&2 25 else 26 echo "! pip install $1" >&2 27 fi 28 29 echo "!" >&2 23 30 echo "!!!!" >&2 24 31 … … 29 36 function check_pip_installed_all() 30 37 { 31 for pkg in pyannote; do38 for pkg in wheel pyannote speechbrain ; do 32 39 check_pip_installed $pkg 33 40 if [ $? != 0 ] ; then … … 37 44 } 38 45 39 40 check_pip_installed_all41 42 if [ $? != 0 ] ; then43 return 144 fi45 46 46 47 if [ "x$VIRTUAL_ENV" = "x" ] ; then … … 53 54 54 55 source $GEXT_STRUCTURED_AUDIO_INSTALLED/virtualenv-python3/bin/activate 56 55 57 fi 56 58 59 60 check_pip_installed_all 61 62 if [ $? != 0 ] ; then 63 return 1 64 fi -
gs3-extensions/structured-audio/trunk/devel.bash
r36131 r36132 1 1 #!/bin/bash 2 2 3 _full_pyver_=$(python -V 2>&1 | grep -Po '(?<=Python )(.+)')3 _full_pyver_=$(python3 -V 2>&1 | grep -Po '(?<=Python )(.+)') 4 4 _pyver_=${_full_pyver_%%.*} 5 5 6 #_pyver_=${1-3} # default to Python v3 7 8 #if [ "x$1" = "x" ] ; then 9 # echo "" >&2 10 # echo "Usage: source ${BASH_SOURCE} 2|3" >&2 11 # echo " where '2' specifies Python v2 is to be used" >&2 12 # echo " where '3' specifies Python v3 is to be used" >&2 13 # echo "" >&2 14 # return 1 15 #fi 16 17 6 if [ "x$_pyver_" = "x" ] ; then 7 echo "" >&2 8 echo "Failed to establish the full version of python" >&2 9 echo "Defaulting to version 3" >&2 10 _pyver_=3 11 fi 12 18 13 19 14 if [ "x$GEXT_STRUCTURED_AUDIO" = "x" ] ; then … … 43 38 # return 1 44 39 45 elif [ "x$VIRTUAL_ENV" = "x" ] ; then46 # It exists, but it hasn't been activated47 echo ""48 echo "****"49 echo "* Warning: To run"50 echo "* ./CASCADE-MAKE.sh"51 echo "*"52 echo "* You first need to activate Python v$_pyver_ Virtual Env:"53 echo "* source $GEXT_STRUCTURED_AUDIO_INSTALLED/virtualenv-python$_pyver_/bin/activate"54 echo "*"55 echo "* So you have a version of the python scripting language under user control"56 echo "* where the 'essentia' build can be installed as a site-package"57 echo "****"58 echo ""59 40 elif [ "$VIRTUAL_ENV" != "$GEXT_STRUCTURED_AUDIO_INSTALLED/virtualenv-python$_pyver_" ] ; then 60 41 # A python virtual env is in play, but not the one for Python v$_pyver_ in this extension's area
Note:
See TracChangeset
for help on using the changeset viewer.