Skip to content

Firgure out how to install the C headers properly #116

Description

@intjelic

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.

Activity

  1. intjelic commented on Aug 16, 2015

    @intjelic
    MemberAuthor

    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 ?

  2. changed the title [-]Install C headers properly[/-] [+]Firgure out how to install the C headers properly[/+] on May 9, 2016
  3. added this to the 2.3.2 milestone on May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions