Skip to content

Pip install complexities (just Kamodo now) #5

@sapols

Description

@sapols

It's not currently possible to install every PyHC package in a single pip call since a few of them require special treatment. Here's what we're doing at the time of this writing:

# Install PyHC packages with pip (SpacePy, Kamodo, and pySPEDAS separately)
RUN pip install --no-cache-dir numpy==1.24.3 && \
    pip install --no-cache-dir spacepy --no-build-isolation && \
    pip install --use-pep517 --retries 5 --no-cache-dir -r /app/requirements.txt && \
    pip install --no-cache-dir git+https://github.com/nasa/Kamodo.git && \
    pip install --no-cache-dir pytplot-mpl-temp && \
    pip install --no-cache-dir pyspedas

Causes:

  1. SpacePy fails to install if numpy isn't already installed and you don't use the --no-build-isolation flag
  2. Kamodo is being installed from GitHub not PyPI
  3. pySPEDAS fails to install if pytplot-mpl-temp isn't installed first

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