Skip to content
Snippets Groups Projects
Commit 71776bfd authored by Patrick MADELA's avatar Patrick MADELA
Browse files

Add python lib to LD_LIBRARY_PATH

parent fe7af0bc
No related branches found
No related tags found
No related merge requests found
Pipeline #1952 passed
...@@ -22,6 +22,7 @@ workflow: ...@@ -22,6 +22,7 @@ workflow:
- conan install python/${PYTHON_VERSION}@soleil/stable --install-folder ${PYTHON_ROOT} - conan install python/${PYTHON_VERSION}@soleil/stable --install-folder ${PYTHON_ROOT}
# Upgrade pip # Upgrade pip
- unset PYTHONPATH - unset PYTHONPATH
- export LD_LIBRARY_PATH=${PYTHON_ROOT}/lib
- ${PYTHON_ROOT}/bin/python -m pip install -q --upgrade pip - ${PYTHON_ROOT}/bin/python -m pip install -q --upgrade pip
# Fix python shebang to make it independent of install path # Fix python shebang to make it independent of install path
- grep -I -r -l "^#\!.*/bin/python.*$" ${PYTHON_ROOT} | xargs sed -i '1c\#\!/usr/bin/env python' - grep -I -r -l "^#\!.*/bin/python.*$" ${PYTHON_ROOT} | xargs sed -i '1c\#\!/usr/bin/env python'
...@@ -33,6 +34,7 @@ workflow: ...@@ -33,6 +34,7 @@ workflow:
.test: .test:
stage: test stage: test
script: script:
- export LD_LIBRARY_PATH=${NAME}/lib
- ${NAME}/bin/python --version | grep ${PYTHON_VERSION} - ${NAME}/bin/python --version | grep ${PYTHON_VERSION}
.package: .package:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment