The autosetup.py module#

Summary#

clone_openusd

Clone the OpenUSD repository if it doesn’t exist.

check_build_dependencies

Check if required build dependencies are available.

get_vs_environment

Get Visual Studio environment variables on Windows.

build_and_install_openusd

Build and install OpenUSD using the build script.

cleanup_openusd_repo

Clean up the cloned OpenUSD repository after successful installation.

parse_arguments

Parse command line arguments.

main

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.