Tarek Ziadé <ziade.ta...@gmail.com> added the comment: 2009/2/17 George Sakkis <rep...@bugs.python.org>: >> Maybe that could be a new feature ? > > That would be nice, especially if we want to reimplement MANIFEST.in as > setup() option at some point. My current implementation doesn't extend > the API, so there's no way to specify a subset of files under a > directory like recursive-include; every directory matched by a glob is > copied in whole (recursively):
Please could you add a feature request ? We will need to discuss it there. > > import os > from distutils.command.build_py import build_py as _build_py > > class build_py(_build_py): > def find_data_files(self, package, src_dir): > files = [] > for p in _build_py.find_data_files(self, package, src_dir): > if os.path.isdir(p): > files.extend(os.path.join(par,f) > for par,dirs,files in os.walk(p) > for f in files) > else: > files.append(p) > return files > If it's a bug, it's certainly not accidental; there's a big XXX comment > justifying this choice but I'm not convinced. I posted about it at > http://mail.python.org/pipermail/python-list/2009-January/524263.html; > if you think it's a bug I'll fill an issue. Please do so, I am focusing on the Distutils-SIG ML , so I missed it I don't know yet what is a proper way to adress this, but the bug tracker seem apprioriate for this. > > ---------- > versions: +Python 2.6, Python 3.0 > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue2279> > _______________________________________ > _______________________________________________ > Python-bugs-list mailing list > Unsubscribe: > http://mail.python.org/mailman/options/python-bugs-list/ziade.tarek%40gmail.com > > _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue2279> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com