Fix compilation without numpy which is broken, fix some warnings along the way.
Remove some code which I presume was used for debugging in sane.py, it breaks bytecode compilation if installed in separate root.
Fedora installs the Pillow headers in /usr/include/pythonX.Y/Imaging, add that path to the include dirs, and stop looking in the old ../libImaging folder. Also remove library_dirs = [PIL_IMAGING_DIR].
/usr/include/pythonX.Y/Imaging
, add that path to the include dirs, and stop looking in the old../libImaging
folder. Also removelibrary_dirs = [PIL_IMAGING_DIR]
._sane.c
).