Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytao installation with pip does not include required dependencies #100

Open
ken-lauer opened this issue Oct 1, 2024 · 1 comment
Open

Comments

@ken-lauer
Copy link
Collaborator

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!)
@DavidSagan
Copy link
Member

Having pytao usable for non-conda people is definitely important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants