python-sfml icon indicating copy to clipboard operation
python-sfml copied to clipboard

Firgure out how to install the C headers properly

Open intjelic opened this issue 10 years ago • 1 comments

According to the documentation (https://docs.python.org/2/install/), C headers that come along with an extension should be installed according to the scheme chosen on command-line (user, home, prefix or custom scheme).

For example, here are three possible location.

userbase/include/pythonX.Y/distname
home/include/python/distname
prefix/include/pythonX.Y/distname

Currently, the setup.py script file force the installation in /usr/local/include/ (resulting in something like /usr/local/include/pysfml/system.h).

The question is, how do we let distutils take care of installing the C headers ? Right now, C headers are treated like "additional data files" and that's how they get installed.

intjelic avatar Jul 08 '15 01:07 intjelic

I've been browsing the Python documentation a lot recently, haven't seen anything about C headers. I come to wonder is it customary to provide a C API to your Python extensions ?

intjelic avatar Aug 16 '15 10:08 intjelic