diff --git a/interface/python_binding/README.md b/interface/python_binding/README.md index d3ec8c57ce..1fe0ba47b7 100644 --- a/interface/python_binding/README.md +++ b/interface/python_binding/README.md @@ -6,3 +6,14 @@ Made with love by [Shukant Pal](https://www.shukantpal.com/about) on his way to # pyktx This Python package provides a Pythonic interface to libktx. It uses CFFI to generate the C bindings. + +## Building + +To build and test pyktx, + +```bash +# Set LIBKTX_INSTALL_DIR if you've installed libktx at the default system location. +# Otherwise set LIBKTX_INCLUDE_DIR, LIBKTX_LIB_DIR to wherever you've built libktx. +cd ${PROJECT_DIR}/interface/python_binding +KTX_RUN_TESTS=true python3 buildscript.py +``` \ No newline at end of file diff --git a/interface/python_binding/buildscript.py b/interface/python_binding/buildscript.py index 7a827a3052..1fb3749a99 100644 --- a/interface/python_binding/buildscript.py +++ b/interface/python_binding/buildscript.py @@ -17,7 +17,7 @@ LIBKTX_INCLUDE_DIR = LIBKTX_INSTALL_DIR + '\\include' if LIBKTX_LIB_DIR is None: LIBKTX_LIB_DIR = LIBKTX_INSTALL_DIR + '\\lib' -elif os.name == 'osx': +elif os.name == 'posix': if LIBKTX_INCLUDE_DIR is None: LIBKTX_INCLUDE_DIR = '/usr/local/include' if LIBKTX_LIB_DIR is None: