<div class="gmail_quote">On Mon, Mar 26, 2012 at 11:39 AM, Andrea Crotti <span dir="ltr"><<a href="mailto:andrea.crotti.0@gmail.com">andrea.crotti.0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Suppose for example I need to include a simple png, apparently I have to do this crazy dance</div>
<br>
include_package_data=True,<br>
packages=find_packages(),<br>
package_data={'data': ['xyz.png']},<br>
<br>
<br>
and even if data/*png is in MANIFEST.in<br>
<br>
Isn't there a way to let bdist_egg package also everything found through the MANIFEST.in?</blockquote><div><br></div><div>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.</div>
<div><br></div></div>