Skip to content

[MRG] Fix numpy-dev build #10132

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 1 commit into from
Nov 14, 2017
Merged

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Nov 14, 2017

https://github.com/numpy/numpy/pull/9332/files change sign='legacy' to legacy=True in the np.set_printoptions arguments.

I have a Cron build that will run on my fork to double-check that the numpy-dev build pass:
https://travis-ci.org/lesteve/scikit-learn/builds/301861240.

Closes #10074.

@lesteve
Copy link
Member Author

lesteve commented Nov 14, 2017

Hmmm looks like we still have failures on numpy-dev 😞:
https://travis-ci.org/lesteve/scikit-learn/builds/301861240

@lesteve
Copy link
Member Author

lesteve commented Nov 14, 2017

I think this PR should be merged anyway, since legacy=True is the right thing to do.

@qinhanmin2014
Copy link
Member

I compare the log in this PR and the log of the cron job yesterday, seems that this PR does not solve any failure(if we consider today's cron job as an accident?). Also, I don't have too much time to investigate but seems that this PR is related to your issue #8959?

@lesteve
Copy link
Member Author

lesteve commented Nov 14, 2017

I compare the log in this PR and the log of the cron job yesterday, seems that this PR does not solve any failure(if we consider today's cron job as an accident?)

Today's cron job is not an accident and is due to sign='legacy' -> legacy=True in the np.set_printoptions arguments. Basically as of now, the tests are not even run because of this.

With this PR, at least the tests are run. I agree it does not solve any failure and we will need to discuss with numpy to better understand how to deal with the failures.

Despite the failures in the Cron job I would be in favour of merging this PR.

Copy link
Member

@qinhanmin2014 qinhanmin2014 left a comment

Choose a reason for hiding this comment

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

Indeed, today's cron build is not an accident and this PR makes cron build able to run. Please kindly forgive me for the naive comment above.

@lesteve
Copy link
Member Author

lesteve commented Nov 14, 2017

Indeed, today's cron build is not an accident and this PR makes cron build able to run. Please kindly forgive me for the naive comment above.

No worries ! Naive comments are good sometimes, in this case it show that I probably did not explain myself well enough.

@lesteve
Copy link
Member Author

lesteve commented Nov 14, 2017

Going to merge this one.

@lesteve lesteve merged commit 3f96eee into scikit-learn:master Nov 14, 2017
@lesteve lesteve deleted the fix-numpy-dev branch November 14, 2017 12:34
@qinhanmin2014
Copy link
Member

@lesteve
Seems that #10074 is not fixed by the PR? Should we reopen it or do we need another issue for the 9 numpy-dev failures?

@lesteve
Copy link
Member Author

lesteve commented Nov 14, 2017

Seems that #10074 is not fixed by the PR? Should we reopen it or do we need another issue for the 9 numpy-dev failures?

Good catch I reopened it.

maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
@eric-wieser
Copy link

For anyone following, the argument was changed to legacy='1.13'

@lesteve
Copy link
Member Author

lesteve commented Nov 22, 2017

Thanks for following up. Yes we are using legacy='1.13' in our numpy-dev build (which passed this morning https://travis-ci.org/scikit-learn/scikit-learn/builds/305675956). We will be able to reenable doctests in our documentation when numpy/numpy#10059 is merged.

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