title: Python: Invalid ELF header importing cython compiled library
body: <p>My problem is the following. I'm working on <code>Ubuntu</code> and have a <code>cython</code> code which I compile using the following:</p>
  
  <pre><code>from distutils.core import setup
  from Cython.Build import cythonize
  import numpy
  
  setup(
     ext_modules = cythonize("cython_accelerate.pyx"),
     include_dirs = [numpy.get_include()]
  ) 
  </code></pre>
  
  <p>Compilation works fine. When I try to import the generated library (cython_accelerate.so) I get the following error: </p>
  
  <blockquote>
    <p>invalid ELF header. </p>
  </blockquote>
  
  <p>If I do the exactly same procedure on Mac everything works perfectly: the only difference is that the library is generated with a different name (cython_accelerate.cpython-35m-darwin.so) but import works as expected without issues. </p>
  
  <p>What am I doing wrong?</p>