eccodes/python
Shahram Najm a3be721f1a Update URLs 2019-01-28 12:47:22 +00:00
..
eccodes Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
gribapi Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
CMakeLists.txt ECC-494 Python: output commands before running them 2017-06-15 13:54:09 +01:00
Makefile.am Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
README Update URLs 2019-01-28 12:47:22 +00:00
README.swig PYTHON3 - document how we generate the swig files ECC-264 2018-10-05 15:20:35 +01:00
compare_iterator_values.sh Ported grib_api 1.10.4 from p4 to git 2013-03-25 12:04:10 +00:00
create_errors.py.sh Change error description: memory allocation error 2016-12-15 11:51:47 +00:00
dummy.am Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
extrules.am Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
grib_errors.h Change error description: memory allocation error 2016-12-15 11:51:47 +00:00
grib_interface.c Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
grib_interface.h Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
gribapi.c Update copyright notices: 2017 -> 2018 2018-01-02 11:31:02 +00:00
gribapi_swig.i Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
numpy.i Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
run_tests.sh Ported grib_api 1.10.4 from p4 to git 2013-03-25 12:04:10 +00:00
setup.py.autotools.in Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
setup.py.in Update URLs 2019-01-28 12:47:22 +00:00
swig_wrap_numpy.c Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
swig_wrap_numpy.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_extra.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_general.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_index.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_iterator.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_keysiterator.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00

README

ecCodes Python bindings

In order to enable the Python bindings in the build,
use the -DENABLE_PYTHON=ON in the cmake step:

  cmake /path/to/src -DENABLE_PYTHON=ON

This will enable the build of the Python bindings with 
NumPy support enabled. Python needs to be in the path
and, of course, the NumPy package installed.

On 'make install', the Python bindings will be installed under
'${ecCodes_install_dir}/lib/pythonX.X/site-packages/eccodes',
where X.X is the version of python used to build the bindings.
Add this folder to your PYTHONPATH and you are ready to go.