[Distutils] How to specify header files for extension module?

Johan Råde johan.rade at gmail.com
Thu Jul 14 09:44:51 CEST 2011

Is this the right mailing list for asking questions about how to use 

How do I specify the header files in a setup.py script for a Python 
extension module? Listing them with source files as follows does not work.

     from distutils.core import setup, Extension
     from glob import glob

         name = "Foo",
         version = "0.1.0",
         ext_modules = [Extension('Foo', glob('Foo/*.cpp') + 

But I can not figure out where else to list them.


More information about the Distutils-SIG mailing list