Can cython be compiled with icc?
<p>I am trying to build cython from source with icc compiler on Ubuntu 14.04 as my python is compiled with Intel icc compiler. </p>

<p>When I tried to install cython using <strong>pip3 install cython</strong> and then ran cython I got following error</p>

<pre><code>Traceback (most recent call last):
File "/usr/local/bin/cython", line 9, in &lt;module&gt;
load_entry_point('Cython==0.24', 'console_scripts', 'cython')()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python3.4/dist-packages/Cython/Compiler/Main.py", line 28, in &lt;module&gt;
from .Scanning import PyrexScanner, FileSourceDescriptor
ImportError: /usr/local/lib/python3.4/dist-packages/Cython/Compiler/Scanning.cpython-34m.so: undefined symbol: __intel_sse2_strchr 
</code></pre>

<p>How does one go about installing cython from source using icc compiler ?</p>

<p>I tried this and it does not work</p>

<p>From the cython directory(downloaded from github)</p>

<p>python3.4 setup.py CC=icc </p>

<p>I get the following message - </p>

<pre><code>/home/aa/libPython/cython/Cython/Distutils/build_ext.py:20: UserWarning:    
Cython.Distutils.build_ext does not properly handle dependencies and is deprectated. Use Cython.Build.build_ext instead.
"Cython.Distutils.build_ext does not properly handle dependencies "
 Unable to find pgen, not compiling formal grammar.
 invalid command name 'CC=icc'
</code></pre>