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

Consider using extension-helpers package for OpenMP helpers #15917

Open
astrofrog opened this issue Dec 18, 2019 · 1 comment
Open

Consider using extension-helpers package for OpenMP helpers #15917

astrofrog opened this issue Dec 18, 2019 · 1 comment
Labels

Comments

@astrofrog
Copy link

@Cadair and I were pleased to notice that you use a fork of the openmp_helpers.py file from astropy in scikit-learn:

https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/_build_utils/openmp_helpers.py

We just wanted to let you know that we have been working on generalizing the helpers we use in astropy and have now released a lightweight and general package called extension-helpers which includes the OpenMP helpers. This package is intended to be used as a build-time dependency in a pyproject.toml file if/once you switch to using this to specify build-time requirements.

Would you be interested in contributing your fixes to openmp_helpers.py upstream to extension-helpers, and using extension-helpers as a build-time dependency? Let us know if you have any questions about extension-helpers! (the GitHub repository is at https://github.com/astropy/extension-helpers).

@rth
Copy link
Member

rth commented Dec 19, 2019

Thanks for opening this issue. Yes it could make sense to share some of the work OpenMP given that it's non trivial. In particular there is the issue with the need to vendor runtime MSVC libraries for OpenMP in windows wheels cf #15899 (comment) that is probably not scikit-learn specific.

As for adding extension-helpers as a build dependency once we support pyproject.toml @jeremiedbb might have an opinion.

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

No branches or pull requests

3 participants