Skip to content
standalone Python script to install SpacePy CDF library prerequisites.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.flake8
.gitignore
LICENSE
README.md
azure-pipelines.yml
demo.cdf
mypy.ini
setup_spacepy.py
test_pycdf_read.py

README.md

Build Status

SpacePy install script

SpacePy install procedure notes that several prereqs are required to get SpacePy installed. Note that if you just need CDF read/write capability, consider CDFlib, which is a pure Python CDF library.

python setup_spacepy.py

downloads, compiles and installs NASA CDF library on Linux using:

  • Python ≥ 3.6
  • C compiler
  • Fortran complier (for FFnet)
  • GNU Make

and then installs SpacePy and verifies SpacePy can read a CDF file.

MacOS

Unfortunately, the Makefiles for CDF are out of date and no longer work on current MacOS versions at least through CDF 3.7. We suggest using CDFlib in general for Python CDF read/write instead of SpacePy.

This shows the benefits of using a modern build system such as Meson instead of hand-crafted Makefiles.

You can’t perform that action at this time.