[Distutils] copy binaries in egg
PJ Eby
pje at telecommunity.com
Mon Mar 26 21:22:40 CEST 2012
On Mon, Mar 26, 2012 at 11:39 AM, Andrea Crotti
<andrea.crotti.0 at gmail.com>wrote:
> Suppose for example I need to include a simple png, apparently I have to
> do this crazy dance
>
> include_package_data=True,
> packages=find_packages(),
> package_data={'data': ['xyz.png']},
>
>
> and even if data/*png is in MANIFEST.in
>
> Isn't there a way to let bdist_egg package also everything found through
> the MANIFEST.in?
That's what include_package_data does. You don't need to have both
'include_package_data' and 'package_data={}', because the former is a
replacement for the latter that autodetects based on either MANIFEST.in or
source control. As long as the file is inside a package and is listed
either in the manifest or the source control system, it'll get included.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20120326/71932418/attachment.html>
More information about the Distutils-SIG
mailing list