CI generating conda packages for SOFA.
Packages are uploaded on the Anaconda channel sofa-framework
.
Only SOFA release are generated for now (no nightly or development versions).
Current SOFA version for conda packages: 24.06.00
SOFA core:
- libsofa: SOFA core runtime libraries
- sofa-devel: SOFA core development files (runtime libraries + headers + cmake files)
- sofa-gl: SOFA.GL rendering library (devel version)
- sofa-gui-qt: Qt based GUI library for SOFA (devel version)
- sofa-app: SOFA runtime binaries (sofaRun) + required resources. Use this package if you want a full install of SOFA core, as it will install as well all the previously mentioned packages for SOFA core.
External SOFA plugins:
- sofa-python3: for macOS users, please read special instructions here.
- sofa-stlib
- sofa-modelorderreduction
- sofa-beamadapter
- sofa-softrobots
If you are new to conda or do not have a recent conda version, consider installing miniforge available here. Miniforge is a conda distribution maintened by the conda-forge community, which is the most active open-source conda community. Miniforge is also preconfigured to use the conda-forge channel by default.
conda create -n sofa-env
conda activate sofa-env
conda install sofa-app sofa-python3 --channel sofa-framework
If you need additional plugins that are listed as available, please see below to install them.
You can install each of the previously mentioned package using conda command-line by specifying the sofa-framework
custom channel. For example, if you want to install only SOFA runtime libraries, i.e. the libsofa
package, use:
conda install libsofa --channel sofa-framework
or use the alternative modern notation:
conda install sofa-framework::libsofa
It is possible to list all the versions of each SOFA package that are available for your platform using conda search
command. For example, searching versions for the libsofa
package:
conda search libsofa --channel sofa-framework
There is a bug with the python / libpython version provided by conda and current SofaPython3 (see this issue or related PR).
If you need to use the runSofa
executable with SofaPython3
plugin, use the provided runSofa_with_python script
(installed in the bin/
directory as well) instead the classical runSofa
.