Skip to content

fix for stub generation#11

Closed
rykerfish wants to merge 2 commits intoconda-forge:mainfrom
rykerfish:stubgen_fix
Closed

fix for stub generation#11
rykerfish wants to merge 2 commits intoconda-forge:mainfrom
rykerfish:stubgen_fix

Conversation

@rykerfish
Copy link
Copy Markdown
Contributor

@rykerfish rykerfish commented Feb 17, 2026

Checklist

@RaulPPelaez I think this (finally) did it, but I'm still a tad confused as to why. The fix is to explicitly link both .so files against cblas, otherwise the stubgen call fails with undefined symbol: cblas_sgemv when importing a solver. I created the conda package locally with the build-locally.py script and was able to verify that the necessary .pyi files get created by stubgen. You can also see in the Azure dev ops logs that the errors where stubgen were crashing (around line 1400) are no longer there.

Should we avoid doing it this way since it wasn't something we had to link against before, or we were linking incorrectly before and it just happened to be satisfied by a closely related BLAS package?

@conda-forge-admin
Copy link
Copy Markdown
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

I do have some suggestions for making it better though...

For recipe/meta.yaml:

  • ℹ️ The recipe is not parsable by parser conda-recipe-manager. The recipe can only be automatically migrated to the new v1 format if it is parseable by conda-recipe-manager.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/22115716483. Examine the logs at this URL for more detail.

@RaulPPelaez
Copy link
Copy Markdown
Contributor

I think this is fine, but if stochasticHydroTools/libMobility#73 includes this patch I would make a release and let the conda-forge infra put it here. Otherwise you have to do extra work to remove the patch in the next release.

@rykerfish
Copy link
Copy Markdown
Contributor Author

Great- I'll close this and release via libmobility release once we have the CUDA 13 version working in there as well. Thanks!

@rykerfish rykerfish closed this Feb 24, 2026
@rykerfish rykerfish deleted the stubgen_fix branch February 24, 2026 18:13
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

Successfully merging this pull request may close these issues.

3 participants