[Distutils] installing data files and headers
M.-A. Lemburg
mal@lemburg.com
Mon Mar 3 06:27:04 2003
A.M. Kuchling wrote:
> On Sat, Mar 01, 2003 at 11:13:19AM +0100, M.-A. Lemburg wrote:
>
>>Why not merge package_files and package_patterns into one
>>list. Then use glob.glob() to work this into a list of
>>single filenames.
>
> There's a potential problem here if I want to include the *.cfg files
> in the package/ directory but not in package/example/. Maybe that
> doesn't matter.
Hmm, globbing 'package/*.cfg' should only include files in the
package dir.
>>The downside with this proposal is that you'll have to add
>>MANIFEST.in rules for these files as well...
>
> The sdist.add_defaults() method automatically includes README{.txt},
> setup.py, and any referenced *.py files in the manifest; clearly if we
> add additional patterns, add_defaults() should automatically include
> matching files in the manifest.
I was referring to any files that a package author adds to the
package via package_files (beyond the default ones like README);
he would have to add the same globbing patterns to MANIFEST.in
in order to have them included in the sdist.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Software directly from the Source (#1, Mar 03 2003)
>>> Python/Zope Products & Consulting ... http://www.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
Python UK 2003, Oxford: 29 days left
EuroPython 2003, Charleroi, Belgium: 113 days left