pygrib icon indicating copy to clipboard operation
pygrib copied to clipboard

Clarify install instructions?

Open preeth1 opened this issue 6 years ago • 2 comments

This is a great library, but the install is complicated. That would be okay, but the instructions here are pretty difficult to follow. Specifically, I'm having trouble understanding this step:

pygrib installation opt

pygrib installation options can either be set with environment variables, or specified in a text file (setup.cfg). To use environment variables, set $GRIBAPI_DIR, $JASPER_DIR, $OPENJPEG_DIR, $PNG_DIR and $ZLIB_DIR so that the include files and libraries for GRIB API, Jasper, OpenJPEG, PNG and zlib will be found. For example, the include files for jasper should be found in $JASPER_DIR/include or $JASPER_DIR/include/jasper, and the jasper library should be found in $JASPER_DIR/lib or $JASPER_DIR/lib64. If any of those environment variables are not set, then it is assumed that GRIB API was not built with support for that library. If the libraries and include files are installed in separate locations, the environment variables $GRIBAPI_INCDIR and $GRIBAPI_LIBDIR can be used to define the locations separately (same goes for JASPER, OPENJPEG, PNG and ZLIB). Note that if both $GRIBAPI_DIR and $GRIBAPI_INCDIR/$GRIBAPI_LIBDIR are specified, $GRIBAPI_DIR takes precedence. To use setup.cfg, copy setup.cfg.template to setup.cfg, open setup.cfg in a text editor and follow the instructions in the comments for editing.

What do I set these environment variables to?

preeth1 avatar Nov 29 '19 00:11 preeth1

And how do these instructions mesh with pip install? Is there a separate set of instructions I can follow to get the pip install to work?

preeth1 avatar Nov 29 '19 00:11 preeth1

pip install pygrib should just work with version 2.1.2

jswhit avatar Dec 22 '20 18:12 jswhit