[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
distutils?
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
setup(
name = "Foo",
version = "0.1.0",
ext_modules = [Extension('Foo', glob('Foo/*.cpp') +
glob('Foo/*.h'))]
)
But I can not figure out where else to list them.
--Johan
More information about the Distutils-SIG
mailing list