Skip to content

MAINT: fix to enable Cython 0.28 to build extended_mutual_info.pyx#10851

Merged
jnothman merged 2 commits intoscikit-learn:masterfrom
oleksandr-pavlyk:fix-metric-cluster-cython
Mar 22, 2018
Merged

MAINT: fix to enable Cython 0.28 to build extended_mutual_info.pyx#10851
jnothman merged 2 commits intoscikit-learn:masterfrom
oleksandr-pavlyk:fix-metric-cluster-cython

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor

With update of Cython from 0.27.3 to 0.28 compiling cythonized source of extended_mutual_info.pyx in 1.0.0 sources started failing with the error that the module with name sklearn.metrics/cluster. in it could not be found.

Applying the proposed fix allowed the compilation to proceed as expected.

Copy link
Copy Markdown
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.

Perhaps we should also increase CYTHON_VERSION in Travis

@lesteve
Copy link
Copy Markdown
Member

lesteve commented Mar 21, 2018

Interesting, I can compile fine with cython 0.28.1 and the Travis Cron job is testing cython-dev and is not failing either. Do you actually get a compilation error? Is that with the Intel Compiler?

What this PR does for me is get rid of this warning during compilation:

Warning: Subpackage 'sklearn.metrics/cluster' configuration returned as 'sklearn.metrics.cluster'

Getting rid of the warning seems like a good enough reason to merge this.

@jnothman
Copy link
Copy Markdown
Member

jnothman commented Mar 22, 2018 via email

@jnothman jnothman merged commit da6869f into scikit-learn:master Mar 22, 2018
@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor Author

@lesteve Yes, I encountered the failure while using Intel Compiler.

@amueller
Copy link
Copy Markdown
Member

pretty sure I fixed that error... but maybe that never landed in master? Which version did you try to compile @oleksandr-pavlyk ?

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor Author

Errors occurred while compiling 0.19.1.

Trying to compile master, errors were gone, but the Cython warning indicated that not all of it got fixed, which is why I decided to propose this change.

@amueller
Copy link
Copy Markdown
Member

makes sense.

jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Jul 4, 2018
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.

4 participants