On Mon, Mar 26, 2012 at 11:39 AM, Andrea Crotti
<[email protected]>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.
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to