SpacePy install script
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.
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.