Distutils appharently fails with a (working) SWIG extension
I am wrapping via SWIG a C library in a python module, here called "myExample". If I compile: $swig -python myExample.i $gcc -c myExample_wrap.c -I /usr/lib/python2.7 -fPIC -std=c99 $ld -shared myExample_wrap.so -llapacke -o _myExample.so I obtain a full working module (liblapacke is necessary for some functions I used). Now I'd like to make this module installable via "pip install". According to the distutils section ( https://docs.python.org/2.7/distutils/setupscript.html ), I wrote my setup.py file: from distutils.core import setup, Extension setup(name='myExample', version='0.1', ext