Skip to content

Commit fd0116f

Browse files
syoyoclaude
andcommitted
Fix macOS ARM64 PYTHONPATH in setup script
Fix PYTHONPATH variable expansion issue in macOS setup script generator. Problem: - PYTHONPATH was showing as "/lib/python:" instead of full path - Variable ${USD_INSTALL_DIR} was being expanded during script generation - At generation time, the variable doesn't exist, so it expanded to empty Solution: - Change heredoc from << EOF to << 'EOF' (with single quotes) - This prevents variable expansion during generation - Variables now expand at runtime when script is sourced This fixes the Python import error: ModuleNotFoundError: No module named 'pxr' Now PYTHONPATH will correctly be: ${USD_INSTALL_DIR}/lib/python (expands at runtime) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c409f56 commit fd0116f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

05-setup-env-minsizerel-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export DYLD_LIBRARY_PATH="${USD_INSTALL_DIR}/lib:${TBB_DIR}/lib:${DYLD_LIBRARY_P
6060
EOF
6161

6262
# Add Python version-specific path
63-
cat >> "${SETUP_SCRIPT}" << EOF
63+
cat >> "${SETUP_SCRIPT}" << 'EOF'
6464
export PYTHONPATH="${USD_INSTALL_DIR}/lib/python:${PYTHONPATH}"
6565
EOF
6666

0 commit comments

Comments
 (0)