assimp/contrib/tinyusdz/tinyusdz_repo/sandbox/python
Steve M 58f7195aac Rename folder only 2024-03-29 19:40:24 -07:00
..
README.md Rename folder only 2024-03-29 19:40:24 -07:00
ctinyusd.py Rename folder only 2024-03-29 19:40:24 -07:00
ctinyusd_test.py Rename folder only 2024-03-29 19:40:24 -07:00
ctypestest.py Rename folder only 2024-03-29 19:40:24 -07:00
load_test.py Rename folder only 2024-03-29 19:40:24 -07:00
prim.py Rename folder only 2024-03-29 19:40:24 -07:00
value_test.py Rename folder only 2024-03-29 19:40:24 -07:00

README.md

Install

$ python -m pip install ctypesgen

Then, generate ctypes binding using gen-ctypes.sh

Run with ASAN build of libc-tinyusd.so

LD_PRELOAD=/mnt/data/local/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/lib/clang/14.0.0/lib/x86_64-unkno  wn-linux-gnu/libclang_rt.asan.so python ctinyusd_test.py

Edit path to libclang_rt.asan.so to fit in your environment.

Note that there are few memory leaks(false positives?) exist in Python side(leaks reported even when running empty Python script).

https://github.com/python/cpython/issues/87469

  • numpy
    • currently numpy is a required module to develop/test Python binding of TinyUSDZ.
  • typeguard
    • for better runtime type check