Skip to content

pytao installation with pip does not include required dependencies #100

@ken-lauer

Description

@ken-lauer

pytao primarily targets conda users and expects to be installed alongside conda-forge dependencies (especially the underlying bmad library, which is not available on PyPI).

Some users may still prefer to install with pip and use their development/pre-built bmad.

In order to do so, they would currently have to add the missing dependencies themselves:

pip install pytao pexpect h5py matplotlib "pydantic>=2"

It's worth considering moving these dependencies from environment.yml to pyproject.toml, then:

  1. pip install pytao becomes useful, even though it won't have bmad
  2. conda install -c conda-forge pytao will still work, as the dependencies are specified in the conda-forge recipe
  3. mamba env create -n pytao --file environment.yml can install bmad from conda-forge and the remainder of the dependencies from PyPI.
    • Mixing dependencies from conda/PyPI is generally not recommended, but I don't really see a way around it. (I'm open to suggestions!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions