Commit bd009787 authored by Thomas Vincent's avatar Thomas Vincent

Allow to set python versions for manylinux wheels

parent 3f9b33f8
......@@ -11,6 +11,7 @@ stages:
#Those variables CAN be defined:
# TAG: <branch or tag> to clone a specific branch/tag instead of master
# MACOS: 1 to build on macOS (requires a macOS runner)
# MANYLINUX_PYTHON_VER: List of Python version for which to build wheels (cpXY-cpXYm[u])
.source_build:
......@@ -71,11 +72,17 @@ stages:
- pushd manylinux_build
- tar -zxvf `ls ../artifacts/${PROJECT}*.tar.gz`
script:
# Check for which version of python build is needed
- if [ -z "${MANYLINUX_PYTHON_VER}" ]; then
export MANYLINUX_PYTHON_VER=`ls /opt/python/`;
fi
- echo "Building for ${MANYLINUX_PYTHON_VER}"
- mkdir wheels
- pushd ${PROJECT}*
- for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install -r https://gitlab.esrf.fr/silx/bob/main/raw/master/requirements-build.txt;
"${PYBIN}/python" setup.py build --no-cython --no-openmp bdist_wheel;
- for PYVER in ${MANYLINUX_PYTHON_VER}; do
echo "*** Building for ${PYVER} ***";
"/opt/python/${PYVER}/bin/pip" install -r https://gitlab.esrf.fr/silx/bob/main/raw/master/requirements-build.txt;
"/opt/python/${PYVER}/bin/python" setup.py build --no-cython --no-openmp bdist_wheel;
rm -rf build;
done
- for WHEEL in dist/*.whl; do
......@@ -434,6 +441,6 @@ stages:
artifacts:
paths:
- public
expire_in: 1h
expire_in: 1 week
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment