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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • garyjefferson123@yahoo.com

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

    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.

    I get:

    error: unknown file type '.c++' (from 'parser.c++')

    when I type 'python setup.py build'

    thanks,
    Gary

  • Glenn Hutchings

    #2
    Re: setup.py and file extensions like ".c++&quot ;

    garyjefferson12 3@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



    Glenn

    Comment

    Working...