Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better detection of python lib / include dirs in build_usd.py
This addresses two issues: - Building using a venv-installed python - The venv-installed pythons would try to pull the libraries from the venv-directory, when they only reside at the "original"\ installed python location - Building with a python that was moved after building on Linux - We experienced issues where the `INCLUDEPY` and `LIBDIR` sysconfig vars were baked at build time. Thus these would no longer be reliable if running a python executable that was moved to a different location after building. Note that or python-2.7, `installed_base` doesn't exist, so we fall back to `base`. This should be fairly backward-compatible, as we check if the dir (for include) or file (for lib) doesn't exist, and try alternate methods if not.
- Loading branch information