eccodes/python/README

16 lines
570 B
Plaintext
Raw Normal View History

2019-01-28 12:47:22 +00:00
ecCodes Python bindings
2013-03-25 12:04:10 +00:00
In order to enable the Python bindings in the build,
2019-01-28 12:47:22 +00:00
use the -DENABLE_PYTHON=ON in the cmake step:
2013-03-25 12:04:10 +00:00
2019-01-28 12:47:22 +00:00
cmake /path/to/src -DENABLE_PYTHON=ON
2013-03-25 12:04:10 +00:00
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
2019-01-28 12:47:22 +00:00
'${ecCodes_install_dir}/lib/pythonX.X/site-packages/eccodes',
2013-03-25 12:04:10 +00:00
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.