eccodes/deprecated/python
Shahram Najm 80f83205ac ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
..
eccodes ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
gribapi ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
CMakeLists.txt ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
Makefile.am ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
README ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
README.swig ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
compare_iterator_values.sh ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
create_errors.py.sh ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
extrules.am ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
grib_errors.h ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
grib_interface.c ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
grib_interface.h ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
gribapi.c ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
gribapi_swig.i ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
gribapi_swig.py ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
numpy.i ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
run_tests.sh ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
setup.py.autotools.in ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
setup.py.in ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
swig_wrap_numpy.c ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
swig_wrap_numpy.py ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
test_extra.py ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
test_general.py ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
test_index.py ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
test_iterator.py ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +00:00
test_keysiterator.py ECC-1511: Remove the Python2 interface 2023-02-02 17:58:34 +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.