{
    "content": [
        {
            "type": "text",
            "text": "# x86_64-linux-gnu-python3-config(1) (man)\n\n**Summary:** python-config - output build options for python C/C++ extensions or embedding\n\n**Synopsis:** python-config  [  --prefix ] [ --exec-prefix ] [ --includes ] [ --libs ] [ --cflags ] [ --ld‐‐\nflags ] [ --extension-suffix ] [ --abiflags ] [ --help ]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --abiflags | — | print the the ABI flags as specified by PEP 3149. |\n| — | --cflags | — | print the C compiler flags. |\n| — | --ldflags | — | print the flags that should be passed to the linker. |\n| — | --includes | — | similar to --cflags but only with -I options (path to python header files). --libs similar to --ldflags but only with -l |\n| — | --prefix | — | prints the prefix (base directory) under which python can be found. |\n| — | --exec-prefix | — | print the prefix used for executable program directories (such as bin, sbin, etc). |\n| — | --extension-suffix | — | print the extension suffix used for binary extensions. --help print the usage message. |\n\n## Examples\n\n- `To build the singe-file c program prog against the python library, use`\n- `gcc $(python-config --cflags --ldflags) progr.cpp -o progr.cpp`\n- `The same in a makefile:`\n- `CFLAGS+=$(shell python-config --cflags)`\n- `LDFLAGS+=$(shell python-config --ldflags)`\n- `all: progr`\n- `To build a dynamically loadable python module, use`\n- `gcc $(python-config --cflags --ldflags) -shared -fPIC progr.cpp -o progr.so`\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (1 lines) — 7 subsections\n  - --abiflags (2 lines)\n  - --cflags (2 lines)\n  - --ldflags (2 lines)\n  - --includes (4 lines)\n  - --prefix (2 lines)\n  - --exec-prefix (2 lines)\n  - --extension-suffix (4 lines)\n- **EXAMPLES** (15 lines)\n- **SEE ALSO** (5 lines)\n- **AUTHORS** (6 lines)\n\n## Full Content\n\n### NAME\n\npython-config - output build options for python C/C++ extensions or embedding\n\n### SYNOPSIS\n\npython-config  [  --prefix ] [ --exec-prefix ] [ --includes ] [ --libs ] [ --cflags ] [ --ld‐‐\nflags ] [ --extension-suffix ] [ --abiflags ] [ --help ]\n\n### DESCRIPTION\n\npython-config helps compiling and linking programs, which embed the  Python  interpreter,  or\nextension modules that can be loaded dynamically (at run time) into the interpreter.\n\n### OPTIONS\n\n#### --abiflags\n\nprint the the ABI flags as specified by PEP 3149.\n\n#### --cflags\n\nprint the C compiler flags.\n\n#### --ldflags\n\nprint the flags that should be passed to the linker.\n\n#### --includes\n\nsimilar to --cflags but only with -I options (path to python header files).\n\n--libs similar to --ldflags but only with -l options (used libraries).\n\n#### --prefix\n\nprints the prefix (base directory) under which python can be found.\n\n#### --exec-prefix\n\nprint the prefix used for executable program directories (such as bin, sbin, etc).\n\n#### --extension-suffix\n\nprint the extension suffix used for binary extensions.\n\n--help print the usage message.\n\n### EXAMPLES\n\nTo build the singe-file c program prog against the python library, use\n\ngcc $(python-config --cflags --ldflags) progr.cpp -o progr.cpp\n\nThe same in a makefile:\n\nCFLAGS+=$(shell python-config --cflags)\nLDFLAGS+=$(shell python-config --ldflags)\nall: progr\n\nTo build a dynamically loadable python module, use\n\ngcc $(python-config --cflags --ldflags) -shared -fPIC progr.cpp -o progr.so\n\n### SEE ALSO\n\npython (1)\nhttp://docs.python.org/extending/extending.html\n/usr/share/doc/python/faq/extending.html\n\n### AUTHORS\n\nThis  manual  page  was  written by Johann Felix Soden <johfel@gmx.de> for the Debian project\n(and may be used by others).\n\n\n\nNovember 27, 2011                         PYTHON-CONFIG(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "x86_64-linux-gnu-python3-config",
        "section": "1",
        "mode": "man",
        "summary": "python-config - output build options for python C/C++ extensions or embedding",
        "synopsis": "python-config  [  --prefix ] [ --exec-prefix ] [ --includes ] [ --libs ] [ --cflags ] [ --ld‐‐\nflags ] [ --extension-suffix ] [ --abiflags ] [ --help ]",
        "flags": [
            {
                "flag": "",
                "long": "--abiflags",
                "arg": null,
                "description": "print the the ABI flags as specified by PEP 3149."
            },
            {
                "flag": "",
                "long": "--cflags",
                "arg": null,
                "description": "print the C compiler flags."
            },
            {
                "flag": "",
                "long": "--ldflags",
                "arg": null,
                "description": "print the flags that should be passed to the linker."
            },
            {
                "flag": "",
                "long": "--includes",
                "arg": null,
                "description": "similar to --cflags but only with -I options (path to python header files). --libs similar to --ldflags but only with -l options (used libraries)."
            },
            {
                "flag": "",
                "long": "--prefix",
                "arg": null,
                "description": "prints the prefix (base directory) under which python can be found."
            },
            {
                "flag": "",
                "long": "--exec-prefix",
                "arg": null,
                "description": "print the prefix used for executable program directories (such as bin, sbin, etc)."
            },
            {
                "flag": "",
                "long": "--extension-suffix",
                "arg": null,
                "description": "print the extension suffix used for binary extensions. --help print the usage message."
            }
        ],
        "examples": [
            "To build the singe-file c program prog against the python library, use",
            "gcc $(python-config --cflags --ldflags) progr.cpp -o progr.cpp",
            "The same in a makefile:",
            "CFLAGS+=$(shell python-config --cflags)",
            "LDFLAGS+=$(shell python-config --ldflags)",
            "all: progr",
            "To build a dynamically loadable python module, use",
            "gcc $(python-config --cflags --ldflags) -shared -fPIC progr.cpp -o progr.so"
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "--abiflags",
                        "lines": 2,
                        "long": "--abiflags"
                    },
                    {
                        "name": "--cflags",
                        "lines": 2,
                        "long": "--cflags"
                    },
                    {
                        "name": "--ldflags",
                        "lines": 2,
                        "long": "--ldflags"
                    },
                    {
                        "name": "--includes",
                        "lines": 4,
                        "long": "--includes"
                    },
                    {
                        "name": "--prefix",
                        "lines": 2,
                        "long": "--prefix"
                    },
                    {
                        "name": "--exec-prefix",
                        "lines": 2,
                        "long": "--exec-prefix"
                    },
                    {
                        "name": "--extension-suffix",
                        "lines": 4,
                        "long": "--extension-suffix"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}