Skip to content

Conversation

@tbttfox
Copy link

@tbttfox tbttfox commented Oct 8, 2024

Description of Change(s)

There's already a python context in pxr/tf/__init__.py that handles adding and removing dll paths for windows, so I moved the Windows specific import path logic out of the pxr/__init__.py to there. This way, we don't have to permanently change the PATH

I couldn't get the tests to pass locally from the dev build, even without my changes.
And I couldn't get the release branch to build because boost breaks.
Any suggestions how to deal with this?

However, I was able to test that my changes load the correct DLL's on python 3.7, python 3.11, and anaconda 3.12 both with and without the PXR_USD_WINDOWS_DLL_PATH variable set. (I just copied my changes directly into different pip installs)

Fixes Issue(s)

#3114

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@jesschimein
Copy link
Collaborator

jesschimein commented Oct 9, 2024

Filed as internal issue #USD-10276

✅ Signed CLA on file

@jesschimein
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@dgovil dgovil added the needs review Issue needing input/review by the repo maintainer (Pixar) label Oct 31, 2024
@dgovil
Copy link
Collaborator

dgovil commented Nov 7, 2024

@sunyab does USD still support Python 3.7 ? If not then perhaps the version check here could be simplified and moved to a build time check for 3.8+?

@tbttfox tbttfox force-pushed the tbttfox/windows_dll_load branch from b4ec8b4 to 0199e38 Compare November 7, 2024 18:35
@asluk asluk added the build Build-related issue/PR label Nov 9, 2024
@jesschimein
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build-related issue/PR needs review Issue needing input/review by the repo maintainer (Pixar)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants