Questions tagged [python-c-extension]

The API is specifically designed for C and C++ developers who are interested in developing extension modules or incorporating Python into their projects.

Retrieve the include and runtime library directories using Python

Suppose I need to utilize gcc through the command line to compile a Python C extension. The call would follow this structure: gcc -o applesauce.pyd -I C:/Python35/include -L C:/Python35/libs -l python35 applesauce.c I've observed that the -I, -L, an ...