Skip to content
Snippets Groups Projects
Commit f166ac3e authored by Ammar Nejati's avatar Ammar Nejati
Browse files

[useMiniconda] Use Miniconda Python platform and install the required Python packages ()

Merging branch 'useMiniconda'  into 'main'.

See merge request !1879
parents 473fc4ab 8d9edf0c
No related branches found
No related tags found
1 merge request!1879Use Miniconda Python platform and install the required Python packages
Pipeline #109403 passed
......@@ -14,7 +14,7 @@ native_Debian_clang:
- export PYTHONPATH=$CI_PROJECT_DIR/build/lib
- export MPLBACKEND=Agg
- QTCMAKE="/usr/local/Qt6/6.2.3/gcc_64/lib/cmake"
- PYPLAT="/home/build/multipython/Python311"
- PYPLAT="/home/build/opt/miniconda3/envs/py311"
- cmake --version
- clang --version
stage: build
......@@ -22,7 +22,7 @@ native_Debian_clang:
- env
- mkdir build
- cd build
- time cmake .. -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBA_PY_PACKAGE=ON -DBA_PY_PLATFORM="$PYPLAT" -DCMAKE_PREFIX_PATH=$QTCMAKE -DZERO_TOLERANCE=ON -DDEVELOPER_CHECKS=ON
- time cmake .. -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBA_PY_PACKAGE=ON -DCMAKE_PREFIX_PATH="$PYPLAT;$QTCMAKE" -DZERO_TOLERANCE=ON -DDEVELOPER_CHECKS=ON
- time ninja
- time xvfb-run -a ctest -j16 --output-on-failure
- time ninja package_source
......@@ -45,7 +45,7 @@ versiondocs:
- hugo version
- mkdir build
- cd build
- time cmake .. -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_PREFIX_PATH=$QTCMAKE -DBATCH_MODE=ON
- time cmake .. -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_PREFIX_PATH="$PYPLAT;$QTCMAKE" -DBATCH_MODE=ON
- time make -j8
- time make -j8 webdoc
- rm -rf ~www/ba/git-main/hugo-public
......@@ -59,13 +59,14 @@ mac_x64:
# obtain nr of logical CPUs via `sysctl hw.logicalcpu`
- NPROC=6
- QTDIR=/usr/local/opt/qt
- PYPLAT="/Users/Shared/Software/miniconda3/envs/py311"
script: &mac_script
- OPTDIR="/Users/Shared/Software"
# print environmental variables
- env
- mkdir build
- cd build
- cmake .. -DCMAKE_PREFIX_PATH="$OPTDIR;$QTDIR/lib/cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBA_APPLE_BUNDLE=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=11 -DCMAKE_INSTALL_PREFIX=/tmp/ba -DBA_PY_PACKAGE=ON
- cmake .. -DCMAKE_PREFIX_PATH="$OPTDIR;$PYPLAT;$QTDIR/lib/cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBA_APPLE_BUNDLE=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=11 -DCMAKE_INSTALL_PREFIX=/tmp/ba -DBA_PY_PACKAGE=ON
- make -j$NPROC
- ctest -j3 --output-on-failure
- zsh var/mk_pypack_macos.zsh
......@@ -82,6 +83,7 @@ mac_arm:
stage: build
before_script:
- QTDIR="/opt/homebrew/opt/qt"
- PYPLAT="/Users/Shared/Software/miniconda3/envs/py311"
# obtain nr of logical CPUs via `sysctl hw.logicalcpu`
- NPROC=14
script: *mac_script
......
......@@ -24,7 +24,7 @@ message(STATUS "Searching required Python packages...")
set(py_packages "numpy;matplotlib")
if (BA_TESTS)
# Python packages needed for tests
list(APPEND py_packages "scipy;lmfit")
list(APPEND py_packages "scipy;lmfit;emcee;tqdm;corner")
endif()
if (BA_PY_PACKAGE)
# Python pip is required for making the wheel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment