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

Pip install complexities (just Kamodo now) #5

Open
sapols opened this issue Mar 11, 2024 · 2 comments
Open

Pip install complexities (just Kamodo now) #5

sapols opened this issue Mar 11, 2024 · 2 comments

Comments

@sapols
Copy link
Contributor

sapols commented Mar 11, 2024

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
@sapols
Copy link
Contributor Author

sapols commented Mar 11, 2024

  1. Might no longer be an issue after the SpacePy 0.5.0 release.

@sapols
Copy link
Contributor Author

sapols commented May 29, 2024

  1. is indeed no longer an issue after SpacePy 0.5.0.
  1. pySPEDAS installs fine on its own now and will pull in the correct pytplot-mpl-temp

So the only package getting special treatment now is Kamodo which gets installed from GitHub:

# Install PyHC packages with pip (Kamodo separately)
RUN 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

@sapols sapols changed the title Pip install complexities Pip install complexities (just Kamodo now) Aug 20, 2024
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

1 participant