This avoids having to edit localdefs by hand to build the new php extension, and voids the need for the Python module to recompile Recoll source files.
How to build and use the python interface is documented in the Recoll user manual, inside the "Programming interface" chapter.