This is an optional compilation step in addition to Installation of the Python3 bindings which makes the code as fast as the original ecCodes module.

Step-by-step guide

To test the much faster CFFI API level, out-of-line mode you need the ecCodes header files. Then you need to clone the repo in the same folder as your ecCodes source tree, make a pip development install and custom compile the binary bindings following these steps:

# Clone the repository to the same folder of your ecCodes source tree:
% git clone https://github.com/ecmwf/eccodes-python
% cd eccodes-python

# Make a pip development install:
% pip install -e .

# Copy ecCodes header files from ecCodes installation to Python3 include directory:
% cp {ECCODES_DIR}/include/*.h {PYTHON3_DIR}/include/python3.X/

# Compile the binary bindings:
% python3 builder.py