Blame README.python

Packit Service 5bcba8
To enable HarfBuzz bindings for Python among other languages, make sure
Packit Service 5bcba8
you have latest version of gobject-introspection available.  On Ubuntu,
Packit Service 5bcba8
you can install that this way:
Packit Service 5bcba8
Packit Service 5bcba8
  sudo apt-get install libgirepository1.0-dev
Packit Service 5bcba8
Packit Service 5bcba8
And then run autogen.sh (if building from git), and then:
Packit Service 5bcba8
Packit Service 5bcba8
  ./configure --with-gobject --enable-introspection
Packit Service 5bcba8
Packit Service 5bcba8
Make sure that gobject-introspection is enabled then in the final report.
Packit Service 5bcba8
Packit Service 5bcba8
Compile and install.
Packit Service 5bcba8
Packit Service 5bcba8
Make sure you have the installation lib dir in LD_LIBRARY_PATH, as needed
Packit Service 5bcba8
for the linker to find the library.
Packit Service 5bcba8
Packit Service 5bcba8
Then make sure you also have GI_TYPELIB_PATH pointing to the resulting
Packit Service 5bcba8
$prefix/lib/girepository-* directory.
Packit Service 5bcba8
Packit Service 5bcba8
Make sure you have pygobject installed.  Then check that the following
Packit Service 5bcba8
import works in your Python interpretter:
Packit Service 5bcba8
Packit Service 5bcba8
  from gi.repository import HarfBuzz
Packit Service 5bcba8
Packit Service 5bcba8
If it does, you are ready to call HarfBuzz from Python!  Congratulations.
Packit Service 5bcba8
See src/sample.py.
Packit Service 5bcba8
Packit Service 5bcba8
The Python API will change.  Let us know on the mailing list if you are
Packit Service 5bcba8
using it, and send lots of feedback.