Skip to content

simplify configuring python support #110

@bd4

Description

@bd4

Modern python (at least since 2.7) has a script called python-config that provides all the paths necessary for building embedded interpreter C integration code. This can be supported via a new configure option (to avoid breaking any existing build scripts or exotic python installs):

# use python-config in path
./configure --with-python-config

# use specific python-config exe
./configure --with-python-config=/path/to/pythonX.Y-config

This could also be bolted on to the existing --with-python, instead of as a separate option. See gdb for an example of kitchen sync python build configuration:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/configure.ac;h=50f6f592ba677ce8e0b3cd36b0df607ace03efe8;hb=HEAD#l728

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions