Skip to content

Simplify minimal-dependency install with pip #737

Open
@jtniehof

Description

Some people have commented on the "heavy" dependencies for SpacePy; in some constrained environments scipy can be relatively big. We only really hard-require numpy and document pretty heavily what functionality is lost without a given dependency. However, pip install gets almost all the dependencies, by popular demand. (We don't install AstroPy, since we only use it to put data in/out of AstroPy...if you need it, you've got it.)

People can use --no-deps and manage manually, of course, but this is hard to do in a requirements.txt. So it would be nice if we could pip install spacepy[minimal] or something to only install numpy. It appears this is not possible--pip "extras" are truly extra.

We could do something like default to numpy only and then use pip install spacepy[full], but I think the default should be to get a reasonable set of dependencies.

I was thinking of starting to treat scipy, matplotlib, h5py as full-required but based on what I'm hearing, some people do like having the lighter dependency set. We just need an easy way of getting it to them.

Metadata

Assignees

No one assigned

    Labels

    documentationIssues that can be addressed with docs (docstrings, sphinx, wiki)enhancementinstallerAffects the installer(s) not functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions