Skip to content
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

Houdini stubs generate workflow #6

Open
GaussianGuaicai opened this issue Mar 3, 2024 · 3 comments
Open

Houdini stubs generate workflow #6

GaussianGuaicai opened this issue Mar 3, 2024 · 3 comments

Comments

@GaussianGuaicai
Copy link

Thanks for the type stubs, it help me a lot!
I've been tried to generate hou.py stubs by myself with your method, but the stubs result looks the same as hou.py it self without the docs string, the type annotations still C++ type string, is there anything i missed?

@chadrik
Copy link
Collaborator

chadrik commented Mar 11, 2024

Hi @GaussianGuaicai, sorry the Houdini stub generation does not work the same as the others here. I started porting it to use the same system here but I did not finish. If you're feeling intrepid, the real generator lives here, you may be able to figure out how to use it.

The original generator was written by @isohedronpipeline, perhaps he will have some time to help me port this over.

@isohedronpipeline
Copy link

isohedronpipeline commented Mar 12, 2024

I'd probably rewrite the stub generator to parse and convert those C++ type annotations instead of pulling it out of the docstrings if I were to do it again. That would greatly simplify that original script as well as make it more reliable and complete, since I really only focused on the classes I was using at the time.

@GaussianGuaicai
Copy link
Author

I totally missed this folder houdini/extras, now its make sense for stubgen_houdini.py

Thanks again~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants