homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tarek
Recipients dripton, gsakkis, tarek
Date 2009年02月17日.10:08:35
SpamBayes Score 1.761924e-13
Marked as misclassified No
Message-id <94bdd2610902170208l315183a0n810e13343f4f7f6b@mail.gmail.com>
In-reply-to <1234841503.0.0.592566070878.issue2279@psf.upfronthosting.co.za>
Content
2009年2月17日 George Sakkis <report@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 <report@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
>
>
History
Date User Action Args
2009年02月17日 10:08:37tareksetrecipients: + tarek, dripton
2009年02月17日 10:08:36tareklinkissue2279 messages
2009年02月17日 10:08:35tarekcreate

AltStyle によって変換されたページ (->オリジナル) /