Skip to content
Snippets Groups Projects
Commit 3b46dfb1 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #8247: Need to apply the same logic to lofarinit.(c)sh.in to determine...

Task #8247: Need to apply the same logic to lofarinit.(c)sh.in to determine PYTHONPATH, because these scripts do not use the CMake variable PYTHON_INSTALL_DIR :(
parent 4cb33cb1
Branches
Tags
No related merge requests found
...@@ -38,7 +38,7 @@ endif ...@@ -38,7 +38,7 @@ endif
set lfr_libdir=`basename $lfr_libdir` set lfr_libdir=`basename $lfr_libdir`
# Get directory for Python extensions # Get directory for Python extensions
set lfr_pylibdir=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True, prefix='')"` set lfr_pylibdir=`python -c "from distutils.sysconfig import get_python_lib; from os.path import join; print join(get_python_lib(plat_specific=True, standard_lib=True, prefix=''), 'site-packages')"`
# Only modify path variables if $lfr_root is an existing directory. # Only modify path variables if $lfr_root is an existing directory.
if (! (-d $lfr_root) ) then if (! (-d $lfr_root) ) then
......
...@@ -38,7 +38,8 @@ fi ...@@ -38,7 +38,8 @@ fi
lfr_libdir=`basename $lfr_libdir` lfr_libdir=`basename $lfr_libdir`
# Get directory for Python extensions # Get directory for Python extensions
lfr_pylibdir=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True, prefix='')"` lfr_pylibdir=`python -c "from distutils.sysconfig import get_python_lib; from os.path import join; print join(get_python_lib(plat_specific=True, standard_lib=True, prefix=''), 'site-packages')"`
# First strip the current LOFARROOT from PATH, LD_LIBRARY_PATH, and PYTHONPATH. # First strip the current LOFARROOT from PATH, LD_LIBRARY_PATH, and PYTHONPATH.
# Take care that a possible . is preceeded by a backslash (for the later sed). # Take care that a possible . is preceeded by a backslash (for the later sed).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment