The autosetup.py module#
Summary#
Clone the OpenUSD repository if it doesn’t exist. |
|
Check if required build dependencies are available. |
|
Get Visual Studio environment variables on Windows. |
|
Build and install OpenUSD using the build script. |
|
Clean up the cloned OpenUSD repository after successful installation. |
|
Parse command line arguments. |
|
Run the OpenUSD auto-setup process. |
Description#
Auto-setup script for OpenUSD installation.
This script creates a virtual environment if needed, clones the OpenUSD repository, and installs it with all necessary dependencies.
Module detail#
- autosetup.clone_openusd() str#
Clone the OpenUSD repository if it doesn’t exist.
Returns#
- str:
Path to the cloned repository.
- autosetup.check_build_dependencies()#
Check if required build dependencies are available.
Raises#
- RuntimeError
If required build dependencies are not found.
- autosetup.get_vs_environment() dict#
Get Visual Studio environment variables on Windows.
Returns#
- dict
Environment variables with Visual Studio paths added.
- autosetup.build_and_install_openusd(install_path: pathlib.Path = None, force_rebuild: bool = False) pathlib.Path#
Build and install OpenUSD using the build script.
- autosetup.cleanup_openusd_repo(openusd_path)#
Clean up the cloned OpenUSD repository after successful installation.
- autosetup.parse_arguments()#
Parse command line arguments.
- autosetup.main()#
Run the OpenUSD auto-setup process.