Installation

The recommended way to install PyFasma is by using Conda to manage the Python environment. Poetry is used for dependency management and packaging. An alternative Poetry-only method is also available.


Poetry-only (Alternative)

This method creates and manages a virtual environment automatically, scoped to the project directory.

  1. Install Poetry:

    curl -sSL https://install.python-poetry.org | python3 -
    
  2. Clone the PyFasma repository:

    git clone https://gitlab.com/lepa22/pyfasma.git
    cd pyfasma
    
  3. Install the package and dependencies:

    poetry install
    
  4. Activate the virtual environment:

    poetry shell
    
  5. (Optional) Install extras:

    poetry install --extras "extras"
    

Note

When using the Poetry-only installation, all Poetry commands (e.g., poetry shell, poetry run python) must be executed from within the project directory (where pyproject.toml is located).
Poetry environments are tied to the project, unlike Conda environments which can be activated globally.