I am trying to build cython from source with icc compiler on Ubuntu 14.04 as my python is compiled with Intel icc compiler.
When I tried to install cython using pip3 install cython and then ran cython I got following error
Traceback (most recent call last): File "/usr/local/bin/cython", line 9, in <module> 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 <module> from .Scanning import PyrexScanner, FileSourceDescriptor ImportError: /usr/local/lib/python3.4/dist-packages/Cython/Compiler/Scanning.cpython-34m.so: undefined symbol: __intel_sse2_strchr
How does one go about installing cython from source using icc compiler ?
I tried this and it does not work
From the cython directory(downloaded from github)
python3.4 setup.py CC=icc
I get the following message -
/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'