distutils: How handle header files??? Got any examples?

Christian Seberino seberino at spawar.navy.mil
Thu Oct 9 19:02:13 EDT 2003


(distutils question)
I know how to configure C code with Extension class in setup.py.
                                                                                
                                                                                
But, how do you handle header files??.. Do you mention them in your
Extension(...) line??
                                                                                
It seems you must
                                                                                
1. Treat them like data files and put them *somewhere*.
                                                                                
2. Now you must add -I<path> command to compilation of .c files
   that points there.
                                                                                
An example of this or pointers would be VERY nice.
                                                                                
Chris




More information about the Python-list mailing list