Commit 1a39ac95 authored by Thomas Vincent's avatar Thomas Vincent

Make extra build options settable

parent a6522cf5
......@@ -12,6 +12,11 @@ stages:
# 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])
# EXTRA_SETUP_PY_CMD_OPTIONS: To add extra targets/options before bdist_wheel
variables:
EXTRA_SETUP_PY_CMD_OPTIONS="build --no-cython --no-openmp"
.source_build:
......@@ -82,7 +87,7 @@ stages:
- 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;
"/opt/python/${PYVER}/bin/python" setup.py ${EXTRA_SETUP_PY_CMD_OPTIONS} bdist_wheel;
rm -rf build;
done
- for WHEEL in dist/*.whl; do
......@@ -244,7 +249,7 @@ stages:
- pip install --upgrade -r https://gitlab.esrf.fr/silx/bob/main/raw/master/requirements-build.txt
- pip list
- cd %PROJECT%*
- python setup.py build --no-cython --no-openmp bdist_wheel
- python setup.py %EXTRA_SETUP_PY_CMD_OPTIONS% bdist_wheel
- cd dist
- dir
- xcopy "*.whl" "..\\..\\..\\artifacts"
......@@ -329,7 +334,7 @@ stages:
- pip install --upgrade -r https://gitlab.esrf.fr/silx/bob/main/raw/master/requirements-build.txt
- pip list
- cd ${PROJECT}*
- python setup.py build --no-cython --no-openmp bdist_wheel
- python setup.py ${EXTRA_SETUP_PY_CMD_OPTIONS} bdist_wheel
- ls dist/
- cp dist/*.whl ../../artifacts/
artifacts:
......
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