<div dir="ltr"><div><span style="font-size:13px">> If you're just after the </span><span style="font-size:13px">ability to say "I want to include this file in the sdist, but not in </span><span style="font-size:13px">the built wheel file or installed distribution" (as I now believe you </span><span style="font-size:13px">are)</span><br></div><div><span style="font-size:13px"><br></span></div>I think that you can add the file to the MANIFEST.in file to achieve the desired behavior.<div><br></div><div>-Robert</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 18, 2015 at 11:39 PM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 19 January 2015 at 11:59, Ben Finney <<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>> wrote:<br>
> Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> writes:<br>
><br>
>> If you have a build/install time only dependency that you want to<br>
>> distribute, you *have* to separate it out into a separate component if<br>
>> you don't want it to also be present at runtime.<br>
><br>
> So, to be clear: if this module is needed during build-time for the<br>
> distribution but does not have a stable API yet, you're saying it<br>
> nevertheless needs to go to a repository for download as an independent<br>
> distribution?<br>
<br>
</span>I actually misunderstood your question. If you're just after the<br>
ability to say "I want to include this file in the sdist, but not in<br>
the built wheel file or installed distribution" (as I now believe you<br>
are), then you're in the implementation defined world of the<br>
significantly underspecified sdist format. I believe setting that up<br>
actually *is* possible already, but have no idea what incantation<br>
you'll need to pass to setuptools to make it do it (and the docs are<br>
unlikely to be a reliable guide).<br>
<br>
If you'd like to volunteer for the task of reverse engineering and<br>
properly documenting how sdists work (with regression tests!), that<br>
would be quite awesome. Not necessarily *fun* from your point of view,<br>
but definitely awesome from my point of view :)<br>
<span class="im HOEnZb"><br>
Regards,<br>
Nick.<br>
<br>
--<br>
Nick Coghlan   |   <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>   |   Brisbane, Australia<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</div></div></blockquote></div><br></div>