Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 270b1683 authored by hhakim's avatar hhakim
Browse files

Update post-install script for py. wrapper (in next to edfcad65).

parent b6350ed5
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ function link_py_files(){
# on fedora python package path are suffixed by site-packages, on ubuntu it's rather dist-packages (TODO: on centos ? on debian ?)
PY_SITE_PACKAGES_PATH=$(python$PY_MAJOR_VER -c 'import os,site,re;print([path for path in site.getsitepackages() if (re.match(".*"+os.path.sep+"site-packages$", path) or re.match(".*"+os.path.sep+"dist-packages$", path)) and os.path.exists(path) ][0])')
[[ ! -d ${PY_SITE_PACKAGES_PATH} ]] && echo -e "\033[1mWARNING\033[0m: couldn't link the Faust py wrapper for python$PY_MAJOR_VER to your system. Either python$PY_MAJOR_VER is not installed on your system and that's pretty normal or it failed for another reason and you'll have to add Faust to your PYTHONPATH manually for using it (see the documentation)." >&2 && return 1
PYFILES=${FAUST_PY_WRAPPER_PATH}/FaustPy.py
PYFILES=${FAUST_PY_WRAPPER_PATH}/pyfaust.py
[[ -n "$DEBUG" ]] && echo PY_MAJOR_VER=$PY_MAJOR_MINOR_VER
if [[ "$PY_MAJOR_VER" = 3* ]]
then
......
......@@ -16,7 +16,7 @@ function link_py_files(){
PY_SITE_PACKAGES_PATH=$($PYTHON -c 'import os,site,re;print([path for path in site.getsitepackages() if re.match(".*"+os.path.sep+"site-packages$", path) and os.path.exists(path) ][0])')
[[ ! -d "${PY_SITE_PACKAGES_PATH}" ]] && return
[[ -n "$DEBUG" ]] && echo PY_SITE_PACKAGES_PATH=${PY_SITE_PACKAGES_PATH}
PYFILES=${FAUST_PY_WRAPPER_PATH}/FaustPy.py
PYFILES=${FAUST_PY_WRAPPER_PATH}/pyfaust.py
[[ "$PY_MAJOR_MINOR_VER" = 3* ]] && PYFILES+=" ${FAUST_PY_WRAPPER_PATH}/FaustCorePy.cpython-3*so" || \
PYFILES+=" ${FAUST_PY_WRAPPER_PATH}/FaustCorePy.so"
for PYFILE in $PYFILES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment