468,242 Members | 1,684 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

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

Aug 25 '06 #1
1 1679
ga**************@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/describi...00000000000000

Glenn

Aug 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Humpdydum | last post: by
22 posts views Thread by James Stroud | last post: by
2 posts views Thread by =?Utf-8?B?RGFuaWVsIERpVml0YQ==?= | last post: by
26 posts views Thread by Don Calloway | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.