Skip to content

MAINT Add _distributor_init.py #15570

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

Merged
merged 5 commits into from
Nov 19, 2019

Conversation

oleksandr-pavlyk
Copy link
Contributor

NumPy has _distributor_init.py:

https://github.com/numpy/numpy/blob/master/numpy/_distributor_init.py

This PR adds one for scikit-learn. The intent is to create a place
to add distributor specific logic, e.g. to implement behavior like in

#14247 (comment)

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Any other comments?

NumPy has `_distributor_init.py`:

https://github.com/numpy/numpy/blob/master/numpy/_distributor_init.py

This PR adds one for scikit-learn. The intent is to create a place
to add distributor specific logic, e.g. to implement behavior like in

scikit-learn#14247 (comment)
@oleksandr-pavlyk
Copy link
Contributor Author

ping.

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is an acceptable solution if we are going to acknowledge the place of platform-specific forks and want to keep them in sync with our releases.

@rth rth added this to the 0.22 milestone Nov 19, 2019
@rth rth added the Needs Decision Requires decision label Nov 19, 2019
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am okay with this.

@jnothman
Copy link
Member

@rth are we okay to merge? Does your addition of Needs Decision imply that we cannot rely on two approvals?

Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well.

Does your addition of Needs Decision imply that we cannot rely on two approvals?

No I didn't put "Waiting for Reviewer" because I though it needed more a decision than a review, but I probably should have.

@rth rth changed the title Adding _distributor_init.py like in NumPy MAINT Add _distributor_init.py Nov 19, 2019
@rth rth merged commit 6231d5a into scikit-learn:master Nov 19, 2019
@rth
Copy link
Member

rth commented Nov 19, 2019

Thanks @oleksandr-pavlyk !

We should backport this to 0.23.X so it could be included in the release..

MDouriez pushed a commit to MDouriez/scikit-learn that referenced this pull request Nov 20, 2019
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request Nov 25, 2019
jnothman pushed a commit that referenced this pull request Nov 28, 2019
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Decision Requires decision
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants