Mentions légales du service

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

Correct PYVER variable and help scipy/matplotlib install on macOS (ci job).

parent df5ffbc6
Branches
Tags 3.37.7
No related merge requests found
Pipeline #834148 skipped
...@@ -626,10 +626,13 @@ test_linux_pkg_release: ...@@ -626,10 +626,13 @@ test_linux_pkg_release:
script: script:
- $JOB_PYTHON -m venv test_pyfaust-$CI_COMMIT_TAG - $JOB_PYTHON -m venv test_pyfaust-$CI_COMMIT_TAG
- source test_pyfaust-$CI_COMMIT_TAG/bin/activate - source test_pyfaust-$CI_COMMIT_TAG/bin/activate
- PYVER=$($JOB_PYTHON --version | awk '{print $2}' | sed -e 's/\.//g;s/\(..\).*/\1/') - PYVER=$($JOB_PYTHON --version | awk '{print $2}' | sed -e 's/\.//;s/\(.*\)\..*/\1/')
- SYS=$(if uname -a | grep -q Darwin; then echo macosx; else echo linux; fi)
- if [ "$SYS" = macosx ]; then pip install scipy==1.9 matplotlib==3.5.3; fi # avoid to build from sources scipy==1.10 and matplolib==3.6.3
- $JOB_PYTHON -m pip install --upgrade pip - $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 "$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 -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());" - $JOB_PYTHON -c "import pyfaust; print(pyfaust.version()); print(pyfaust.rand(5,5).toarray());"
- $JOB_PYTHON -c "import pyfaust.tests; pyfaust.tests.run_tests('cpu', 'double')" - $JOB_PYTHON -c "import pyfaust.tests; pyfaust.tests.run_tests('cpu', 'double')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment