setup.py and file extensions like ".c++"

Glenn Hutchings zondo42 at googlemail.com
Fri Aug 25 02:48:34 EDT 2006


garyjefferson123 at yahoo.com wrote:
> Is there any way to get setup.py to recognize file extensions like .c++
> in lieu of .cpp?  I'd love to not have to rename the source files for
> the library I'm trying to wrap in a python C extension.

The python docs imply that the file extension is dealt with by the
native C++ build system, so you have to use a recognized suffix (either
.cpp or .cc, and possibly others).  Looks like .c++ isn't a standard
one.  See

http://docs.python.org/dist/describing-extensions.html#SECTION002320000000000000000

Glenn




More information about the Python-list mailing list