Distutils vs. Extension header files
vincent wehren
vincent at visualtrans.de
Thu Dec 9 23:47:30 EST 2004
More information about the Python-list mailing list
Thu Dec 9 23:47:30 EST 2004
- Previous message (by thread): Distutils vs. Extension header files
- Next message (by thread): Distutils vs. Extension header files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mike Meyer wrote: > I've got a package that includes an extension that has a number of > header files in the directory with the extension. They are specified > as "depends = [...]" in the Extension class. However, Distutils > doesn't seem to do anything with them. > > If I do an sdist, the include files aren't added to the tarball. IIRC you need to add a MANIFEST.IN file to get non-Python files (including those already referenced in your setup.py) in the mix. You'll propably need a MANIFEST.IN looking something like the following: include *.txt include MANIFEST.in include setup.py include setup.cfg recursive-include src *.c *.h recursive-include docs *.html *.css *.gif *.jpg *.txt prune someolddir HTH, -- Vincent Wehren > > If I do a bdist_rpm, the source files get copied into the build > directory and the build starts, but the header files aren't copied > with the source file, so the build fails with a missing header file. > > I find it hard to believe that this is a bug in distutils, so I'd > appreciate it if someone could tell me what I'm doing wrong. > > Thanks, > <mike
- Previous message (by thread): Distutils vs. Extension header files
- Next message (by thread): Distutils vs. Extension header files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list