<div class="gmail_quote">On Mon, Mar 26, 2012 at 11:39 AM, Andrea Crotti <span dir="ltr">&lt;<a href="mailto:andrea.crotti.0@gmail.com">andrea.crotti.0@gmail.com</a>&gt;</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={&#39;data&#39;: [&#39;xyz.png&#39;]},<br>
<br>
<br>
and even if data/*png is in MANIFEST.in<br>
<br>
Isn&#39;t there a way to let bdist_egg package also everything found through the MANIFEST.in?</blockquote><div><br></div><div>That&#39;s what include_package_data does.  You don&#39;t need to have both &#39;include_package_data&#39; and &#39;package_data={}&#39;, 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&#39;ll get included.</div>
<div><br></div></div>