Hi Philip<br><br><div><span class="gmail_quote">On 1/15/07, <b class="gmail_sendername">Phillip J. Eby</b> &lt;<a href="mailto:pje@telecommunity.com">pje@telecommunity.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
At 02:16 PM 1/15/2007 +0100, Arve Knudsen wrote:<br>&gt;Hi<br>&gt;I&#39;m experiencing a problem when using setuptools (0.6c5) to generate a<br>&gt;source tarball, using the &#39;sdist&#39; command. What happens is that data files
<br>&gt;(PNGs) are omitted even though I include them in package_data (keyword to<br>&gt;setup), and they are correctly included when installing. Is it the<br>&gt;intended behaviour of &#39;sdist&#39; to ignore package_data, or is this a bug?
<br><br>They should be included in the sdist.&nbsp;&nbsp;Are you using CVS or Subversion, and<br>if so, are the .png files under revision control?&nbsp;&nbsp;That information will<br>help me narrow down what the problem is.<br></blockquote></div>
<br>After having sent this mail, I did some more digging on Google and from what I understand sdist doesn&#39;t actually support the &#39;package_data&#39; keyword, right?&nbsp;This&nbsp;should&nbsp;really&nbsp;be&nbsp;better&nbsp;pointed&nbsp;out&nbsp;in&nbsp;the&nbsp;documentation,&nbsp;as&nbsp;some&nbsp;of&nbsp;my&nbsp;colleagues&nbsp;also&nbsp;struggled&nbsp;with&nbsp;this&nbsp;before.
<br><br>So I tried &#39;include_package_data&#39; instead, after having extended setuptools with support for the Mercurial VCS. This made sdist include also each and every version-controlled Python file however. Is this the intended behaviour? So in the end I resorted to 
MANIFEST.in, although I&#39;d prefer to keep this within setup.py.<br><br>If there&#39;s any interest I can provide the source for my Mercurial extension (simple as it may be).<br><br>Thanks,<br>Arve Knudsen<br>