Skip to content

Commit

Permalink
Handle default installation & build README
Browse files Browse the repository at this point in the history
  • Loading branch information
ShukantPal committed Nov 25, 2023
1 parent 98f919b commit 9b59d81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions interface/python_binding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion interface/python_binding/buildscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9b59d81

Please sign in to comment.