Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

Code Block
languagebash
# Clone tethe 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


Content by Label
showLabelsfalse
max5
spacesUDOC
showSpacefalse
sortmodified
reversetrue
typepage
excludeCurrenttrue
cqllabel in ("pip","python","python3") and label in ("python3","python","installation","pip") and type = "page" and space = "UDOC"
labelspip python python3