Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e046a993 authored by hhakim's avatar hhakim
Browse files

Shorten ci job commands using PYVER variable.

parent 4da99eb4
No related branches found
No related tags found
No related merge requests found
......@@ -630,8 +630,8 @@ test_linux_pkg_release:
- $JOB_PYTHON -m pip install --upgrade pip
- SYS=$(if uname -a | grep -q Darwin; then echo macosx; else echo linux; fi)
# avoid to build from sources scipy==1.10 and matplolib==3.6.3, either with py3.9 or 3.11
- if [ "$SYS" = macosx -a "$JOB_PYTHON" = "python3.9" ]; then pip install scipy==1.9 matplotlib==3.5.3; fi
- if [ "$SYS" = macosx -a "$JOB_PYTHON" = "python3.11" ]; then wget https://files.pythonhosted.org/packages/7a/23/13579b64ab458782a43e11e1ad095488458b8df099063ae07773666adada/scipy-1.10.0-cp311-cp311-macosx_10_15_x86_64.whl; mv scipy-1.10.0-cp311-cp311-macosx_10_15_x86_64.whl scipy-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl; pip install scipy-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl; fi
- if [ "$SYS" = macosx -a "$PYVER" = "39" ]; then pip install scipy==1.9 matplotlib==3.5.3; fi
- if [ "$SYS" = macosx -a "$PYVER" = "311" ]; then wget https://files.pythonhosted.org/packages/7a/23/13579b64ab458782a43e11e1ad095488458b8df099063ae07773666adada/scipy-1.10.0-cp311-cp311-macosx_10_15_x86_64.whl; mv scipy-1.10.0-cp311-cp311-macosx_10_15_x86_64.whl scipy-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl; pip install scipy-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl; fi
- if [ "$SYS" = macosx -a "$JOB_PYTHON" = "python3.11" ]; then wget https://files.pythonhosted.org/packages/09/ac/f3c841a09bb7479832832472ef9ec49c2069f437d0266c1168d586eee601/matplotlib-3.6.3-cp311-cp311-macosx_10_12_x86_64.whl;mv matplotlib-3.6.3-cp311-cp311-macosx_10_12_x86_64.whl matplotlib-3.6.3-cp311-cp311-macosx_10_9_x86_64.whl;pip install matplotlib-3.6.3-cp311-cp311-macosx_10_9_x86_64.whl; fi
- $JOB_PYTHON -m pip install --upgrade build/wrapper/python/dist/${PYFAUST_PKG_NAME}-$CI_COMMIT_TAG-*$PYVER*$SYS*.whl
- $JOB_PYTHON -c "import pyfaust; print(pyfaust.version()); print(pyfaust.rand(5,5).toarray());"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment