<h4 dir="auto">Description</h4>

<p dir="auto">Hi, with installed:<br>
python-2.7.14<br>
numpy-1.13.1<br>
scipy-0.18.0<br>
Cython-0.28.1</p>
<p dir="auto">compiling scikiyt-learn-0.19.1 on Slackware64-current: gives this error:<br>
Cython.Compiler.Errors.CompileError: sklearn/metrics/cluster/expected_mutual_info_fast.pyx</p>
<blockquote>
<p dir="auto">[16/40] Cythonizing sklearn/manifold/_utils.pyx<br>
[17/40] Cythonizing sklearn/metrics/cluster/expected_mutual_info_fast.pyx</p>
<p dir="auto">Error compiling Cython file:<br>
------------------------------------------------------------<br>
...<br>
# cython: cdivision=True<br>
^<br>
------------------------------------------------------------</p>
<p dir="auto">sklearn/metrics/cluster/expected_mutual_info_fast.pyx:1:0: 'sklearn.metrics/cluster.expected_mutual_info_fast' is not a valid module name<br>
Traceback (most recent call last):<br>
File "setup.py", line 269, in <br>
setup_package()<br>
File "setup.py", line 265, in setup_package<br>
setup(**metadata)<br>
File "/usr/lib64/python2.7/site-packages/numpy/distutils/core.py", line 135, in setup<br>
config = configuration()<br>
File "setup.py", line 135, in configuration<br>
config.add_subpackage('sklearn')<br>
File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 1029, in add_subpackage<br>
caller_level = 2)<br>
File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 998, in get_subpackage<br>
caller_level = caller_level + 1)<br>
File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in _get_configuration_from_setup_py<br>
config = setup_module.configuration(*args)<br>
File "sklearn/setup.py", line 82, in configuration<br>
maybe_cythonize_extensions(top_path, config)<br>
File "/tmp/SBo/scikit-learn-0.19.1/sklearn/_build_utils/<strong>init</strong>.py", line 84, in maybe_cythonize_extensions<br>
config.ext_modules = cythonize(config.ext_modules)<br>
File "/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py", line 1026, in cythonize<br>
cythonize_one(*args)<br>
File "/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py", line 1146, in cythonize_one<br>
raise CompileError(None, pyx_file)<br>
Cython.Compiler.Errors.CompileError: sklearn/metrics/cluster/expected_mutual_info_fast.pyx</p>
</blockquote>
<h4 dir="auto">Steps/Code to Reproduce</h4>

<h4 dir="auto">Expected Results</h4>

<h4 dir="auto">Actual Results</h4>

<h4 dir="auto">Versions</h4>
<p dir="auto">There has been an error in the scipy-dev-wheels build for a few days, e.g. <a href="https://travis-ci.org/scikit-learn/scikit-learn/builds/317609541" rel="nofollow">https://travis-ci.org/scikit-learn/scikit-learn/builds/317609541</a>. Seems due to cython-dev:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[17/40] Cythonizing sklearn/metrics/cluster/expected_mutual_info_fast.pyx
Error compiling Cython file:
------------------------------------------------------------
...
# cython: cdivision=True
^
------------------------------------------------------------
sklearn/metrics/cluster/expected_mutual_info_fast.pyx:1:0: 'sklearn.metrics/cluser.expected_mutual_info_fast' is not a valid module name
Traceback (most recent call last):
  File &quot;setup.py&quot;, line 269, in &lt;module&gt;
    setup_package()
  File &quot;setup.py&quot;, line 265, in setup_package
    setup(**metadata)
  File &quot;/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/core.p&quot;, line 135, in setup
    config = configuration()
  File &quot;setup.py&quot;, line 135, in configuration
    config.add_subpackage('sklearn')
  File &quot;/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/misc_uil.py&quot;, line 1024, in add_subpackage
    caller_level = 2)
  File &quot;/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/misc_uil.py&quot;, line 993, in get_subpackage
    caller_level = caller_level + 1)
  File &quot;/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/misc_uil.py&quot;, line 930, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File &quot;sklearn/setup.py&quot;, line 82, in configuration
    maybe_cythonize_extensions(top_path, config)
  File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/_build_utils/__init_.py&quot;, line 84, in maybe_cythonize_extensions
    config.ext_modules = cythonize(config.ext_modules)
  File &quot;/home/travis/testvenv/lib/python3.6/site-packages/Cython/Build/Dependences.py&quot;, line 1025, in cythonize
    cythonize_one(*args)
  File &quot;/home/travis/testvenv/lib/python3.6/site-packages/Cython/Build/Dependences.py&quot;, line 1145, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn/metrics/cluster/expected_mutual_inf_fast.py"><pre class="notranslate"><code class="notranslate">[17/40] Cythonizing sklearn/metrics/cluster/expected_mutual_info_fast.pyx
Error compiling Cython file:
------------------------------------------------------------
...
# cython: cdivision=True
^
------------------------------------------------------------
sklearn/metrics/cluster/expected_mutual_info_fast.pyx:1:0: 'sklearn.metrics/cluser.expected_mutual_info_fast' is not a valid module name
Traceback (most recent call last):
  File "setup.py", line 269, in &lt;module&gt;
    setup_package()
  File "setup.py", line 265, in setup_package
    setup(**metadata)
  File "/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/core.p", line 135, in setup
    config = configuration()
  File "setup.py", line 135, in configuration
    config.add_subpackage('sklearn')
  File "/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/misc_uil.py", line 1024, in add_subpackage
    caller_level = 2)
  File "/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/misc_uil.py", line 993, in get_subpackage
    caller_level = caller_level + 1)
  File "/home/travis/testvenv/lib/python3.6/site-packages/numpy/distutils/misc_uil.py", line 930, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "sklearn/setup.py", line 82, in configuration
    maybe_cythonize_extensions(top_path, config)
  File "/home/travis/build/scikit-learn/scikit-learn/sklearn/_build_utils/__init_.py", line 84, in maybe_cythonize_extensions
    config.ext_modules = cythonize(config.ext_modules)
  File "/home/travis/testvenv/lib/python3.6/site-packages/Cython/Build/Dependences.py", line 1025, in cythonize
    cythonize_one(*args)
  File "/home/travis/testvenv/lib/python3.6/site-packages/Cython/Build/Dependences.py", line 1145, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn/metrics/cluster/expected_mutual_inf_fast.py
</code></pre></div>