-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from jswhit/v2.1.2rel
prepare for v2.1.2rel
- Loading branch information
Showing
31 changed files
with
300 additions
and
10,824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 65f4399708de4ec123415b7aaea1b846 | ||
config: 8dd736fc547b45a6a09dfaf65e8e237b | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,43 @@ | ||
Installation | ||
============ | ||
|
||
Required dependencies | ||
--------------------- | ||
Dependencies | ||
------------ | ||
|
||
- Python >= 2.7 | ||
- `ECCODES <https://confluence.ecmwf.int/display/ECC>`__ C library version 2.19.1 or higher. | ||
- ECCODES_ C library. | ||
- `numpy <http://www.numpy.org/>`__ | ||
- `pyproj <https://pyproj4.github.io/pyproj/stable>`__ | ||
- `cython <https://cython.org>`__ (only needed at build-time) | ||
|
||
|
||
Instructions | ||
------------ | ||
|
||
The easiest way to get everything installed is to use conda_ command line tool:: | ||
|
||
$ conda install -c conda-forge pygrib | ||
The easiest way to get everything installed is to use pip_: | ||
|
||
.. _conda: http://conda.io/ | ||
>>> pip install pygrib | ||
|
||
If you don't use conda, be sure you have the required dependencies | ||
installed first. Then, install cftime with pip:: | ||
This will install all the dependencies for you (including the ECCODES_ C lib). | ||
|
||
$ ECCODES_DIR=path/to/eccodes pip install pygrib | ||
If you're using Anaconda python, use conda_: | ||
|
||
where ``$ECCODES_DIR`` is the path to the directory containing ``include/grib_api.h`` | ||
and ``lib/libeccodes.so``. If ``ECCODES_DIR`` is not specified, a few common locations | ||
such as ``$CONDA_PREFIX,/usr,/usr/local,/opt/local`` will be searched.. | ||
>>> conda install -c conda-forge pygrib | ||
|
||
.. _pip: http://pip.pypa.io/ | ||
.. _conda: http://conda.io/ | ||
.. _ECCODES: https://confluence.ecmwf.int/display/ECC/ | ||
|
||
Developing | ||
---------- | ||
|
||
When developing we recommend cloning the GitHub repository, | ||
building the extension in-place with `cython <http://cython.org/>`__ 0.19 or later | ||
``python setup.py build_ext --inplace`` | ||
To build from source, clone the github repository and run setup.py: | ||
|
||
>>> git clone https://github.com/jswhit/pygrib | ||
>>> cd pygrib | ||
>>> ECCODES_DIR=path/to/eccodes python setup.py install | ||
|
||
and running the test script to check if the changes are passing the tests | ||
``python test.py`` | ||
where ``$ECCODES_DIR`` is the path to the directory containing ``include/grib_api.h`` | ||
and ``lib/libeccodes.so``. If ``ECCODES_DIR`` is not specified, a few common locations | ||
such as ``$CONDA_PREFIX,/usr,/usr/local,/opt/local`` will be searched.. | ||
Then run a test script to check if things are working | ||
``cd test; python test.py`` |
Oops, something went wrong.