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

Fix build issue

parent e71c5cbf
No related branches found
No related tags found
No related merge requests found
Pipeline #1083 failed
variables: variables:
CONAN_VERSION: "2.36.2" CONAN_VERSION: "1.52.0"
PYTHON_VERSION: "3.6.13" PYTHON_VERSION: "3.6.13"
stages: stages:
...@@ -14,11 +14,11 @@ stages: ...@@ -14,11 +14,11 @@ stages:
# Install python 3 # Install python 3
- curl -s -L -o ${PYTHON_ROOT}.zip https://gitlab.synchrotron-soleil.fr/software-control-system/devtools/python3/-/jobs/artifacts/main/download?job=${PLATFORM} - curl -s -L -o ${PYTHON_ROOT}.zip https://gitlab.synchrotron-soleil.fr/software-control-system/devtools/python3/-/jobs/artifacts/main/download?job=${PLATFORM}
- unzip -q ${PYTHON_ROOT}.zip -d ${CI_PROJECT_DIR} - unzip -q ${PYTHON_ROOT}.zip -d ${CI_PROJECT_DIR}
- rm ${PYTHON_ROOT}.zip - rm -f ${PYTHON_ROOT}.zip
# Install conan # Install conan
- ${PYTHON_ROOT}/bin/pip3 install -q --no-cache-dir --prefix=${CONAN_ROOT} conan==${CONAN_VERSION} conan-package-tools - ${CI_PROJECT_DIR}/${PYTHON_ROOT}/bin/python -m pip install -q --no-cache-dir --prefix=${CI_PROJECT_DIR}/${CONAN_ROOT} conan==${CONAN_VERSION} conan-package-tools
# Fix python shebang to make it independent of install path # Fix python shebang to make it independent of install path
- grep -I -r -l "^#\!${PYTHON_ROOT}/bin/python.*$" ${CONAN_ROOT} | xargs sed -i '1c\#\!/usr/bin/env python' - grep -I -r -l "^#\!${CI_PROJECT_DIR}/${PYTHON_ROOT}/bin/python.*$" ${CI_PROJECT_DIR}/${CONAN_ROOT} | xargs sed -i '1c\#\!/usr/bin/env python'
# Clean pycache # Clean pycache
- find ${CI_PROJECT_DIR}/${CONAN_ROOT} -iname __pycache__ -print0 | xargs -0 rm -rf - find ${CI_PROJECT_DIR}/${CONAN_ROOT} -iname __pycache__ -print0 | xargs -0 rm -rf
artifacts: artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment