-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] fixes for python docstring builds on windows #2574
[docs] fixes for python docstring builds on windows #2574
Conversation
Filed as internal issue #USD-8569 |
@pmolodo again, thanks so much for doing this PR (and apologies for the delay in reviewing it). I tried this PR on a Win10 instance using the following build_usd.py command (to a clean/empty USD-install dir):
and I'm getting the following log error with no __DOC.py files getting produced:
If I take out ${CMAKE_INSTALL_PREFIX}/plugin/usd from the list of libPaths in Public.cmake, things build correctly. I think(?) what might be happening is that the plugin\usd dir isn't getting created/built until after the python docs are built? Can you confirm this behavior? |
c8392df
to
3bd68fc
Compare
Oh, good find @dsyu-pixar ! I fixed this by just adding a check that the path exists before calling Confirmed that it works, with your options, after this change. |
3bd68fc
to
a623c9f
Compare
Rebased and fixed merge conflict... |
Thanks for the fix @pmolodo! Confirmed it's working on my end on Windows. |
@pmolodo a question came up in a review of this change -- do we need the LD_LIBRARY_PATH change for Linux and MacOS? As in, were you running into cases on Linux or MacOS where the modules weren't loading? Additionally, if there is an issue on MacOS, it was pointed out that we might need to use DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH. If the issue was only occurring on Windows, would it be possible to update the change to only get applied if the build is happening on Windows? E.g. only add to the commandline in Public.cmake if we detect we're building on Windows, rename the libPath argument to something Windows-specific, like windowsLibPath, for better clarity, and drop the LD_LIBRARY_PATH portion of the change in convertDoxygen.py? Let me know what you think. |
a623c9f
to
e5f720d
Compare
e5f720d
to
e6c0cf8
Compare
I checked and confirmed that the |
Description of Change(s)
Allows python docstring generation on windows
NOTE:
This PR is one of several targeting the python docstring generation process. To see all these PRs in a branch, see here.