Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 2.16 KB

File metadata and controls

78 lines (50 loc) · 2.16 KB

Dependencies (Experimental)

!!This feature is still experimental!!

Dependencies are defined in pyproject.toml file

There are two kinds of dependencies :

  • pypi which are defined in standard pyproject section according to the PEPs. Those dependencies can be installed either with uv astral or pixi
  • conda (python or other) which can only be installed with pixi

uv vs pixi

uv only handles pypi (pure python) dependencies. pixi uses uv for pypi dependencies and conda for others. pixi implements tasks using Deno shell (lightweight posix shell compatible with linux windows and macos).

  • if you only want to use python dependencies uv is just fine (for example for autocompletion in your editor)
  • if you want requirements installations for aster compilation + tasks you should pixi

Pixi Tasks (Experimental)

!!This feature is still experimental!!

We provide several tasks to ease compilation, when executed those tasks will update environments and then run tasks. Tasks can depend on other ones for instance test task depends on build -> build will be triggered every time you run test.

pixi tasks

  • To list all available tasks :
pixi task list

Note

pixi r is a shortcut for pixi run

As a starting point, here is how you can install aster using pixi tasks:

pixi r configure
pixi r install

Shortcut to run_aster executable:

pixi r start ....

or if you want to install aster and then use run_ctest (usefull for development iterations):

pixi r test -R "zzzz" ....

Pixi Environments

Pixi provides the capacity to handle several environments in a single project. It's usefull to isolate dependencies and avoid dependency conflicts.

To list all available project pixi environments:

pixi workspace environment list

pixi environments

EDF specific

Edf users can install pixi using this procedure pixi install edf