Can cython be compiled using icc?

I am trying to build cython from source using icc compiler on Ubuntu 14.04 since my python is compiled with Intel icc compiler.

When I tried installing cython using pip3 install cython and then running cython, I got the 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 to install 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'
+4
source share
1 answer

CC=icc icc. icc (fooobar.com/questions/1644875/...; icc ELF), setup.py, LD icc LD=icc ( , , gcc).

LINKCC - https://github.com/cython/cython/blob/970c2fc0e676ca22016e14147ada0edba937dc6b/Cython/Build/BuildExecutable.py

CC = get_config_var('CC', os.environ.get('CC', ''))
CFLAGS = get_config_var('CFLAGS') + ' ' + os.environ.get('CFLAGS', '')
LINKCC = get_config_var('LINKCC', os.environ.get('LINKCC', CC))

, cython icc CC=icc LINKCC=icc, , setup.py, distutils gcc?

CC=icc LINKCC=icc python3.4 setup.py

: gansub, "LDSHARED=icc" env. cython: " LDSHARED = icc" - http://chat.stackoverflow.com/transcript/message/31231907#31231907 fooobar.com/questions/1644877/...

Syrtis Major: " Parallelism Cython *" https://software.intel.com/en-us/articles/thread-parallelism-in-cython Nguyen, Loc Q (Intel), 15 2016 LDSHARED="icc -shared" CC=icc:

Intel icc , setup.py :

 $ LDSHARED="icc -shared" CC=icc python setup.py build_ext –-inplace
+5

All Articles