<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 25, 2016 at 11:11 AM, Donald Stufft <span dir="ltr"><<a href="mailto:donald@stufft.io" target="_blank">donald@stufft.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Aug 25, 2016, at 11:46 AM, M.-A. Lemburg <<a href="mailto:mal@egenix.com">mal@egenix.com</a>> wrote:<br>
><br>
> You may not be aware, but developers that work on both Windows<br>
> and Unix often have two sets of source code packages: one using<br>
> Windows line ends, the other using Unix ones.<br>
><br>
> The Windows ones can also include code which is only relevant<br>
> on Windows while the Unix one includes parts that are only used<br>
> on Unix, so having two sets (ZIP for Windows and .tar.gz for Unix)<br>
> is a natural way to distribute your source code for those two<br>
> target systems.<br>
><br>
> Standardizing on two sdist formats is fine, but artificially<br>
> limiting this to just one sdist upload removes useful<br>
> functionality.<br>
<br>
</span>Well, except this doesn’t actually work in practice and anyone<br>
doing this has a broken sdist. Neither pip nor setuptools is going<br>
to consider a ``.tar.gz`` as a “Linux” sdist nor a ``.zip`` as a<br>
“Windows” sdist and which one they happen to pick is basically an<br>
implementation detail (in the latest version of pip, it’ll use<br>
whichever one appears first in the /simple/<whatever>/ page.<br></blockquote><div><br></div><div>Is that because there wasn't an OrderedDict</div><div>(either in the data producer (pypi, warehouse) or in the data consumer (pip, easy_install)?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In fact people doing this (which I am entirely sure is not common,<br>
but I’m sure there is someone doing it) are likely to be the cause<br>
of the weird issues that this part of the PEP is attempting to<br>
prevent. Someone who happens to get the “Windows” sdist on Linux<br>
and then is incredibly confused when it doesn’t have the Linux pieces<br>
they need (and remember, none of the tooling supports the idea that<br>
.tar.gz is for Linux and .zip is for Windows, so who knows which one<br>
they’ll get). Of course, if the only difference is Windows vs Unix<br>
line endings it’ll be ~roughly fine because Unix line endings work<br>
fine on Windows, and Windows line endings work fine on Unix, but<br>
shipping line ending differences to the correct OS is not a good<br>
enough reason to keep this.<br>
<div class="HOEnZb"><div class="h5"><br>
—<br>
Donald Stufft<br>
<br>
<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/distutils-sig</a><br>
</div></div></blockquote></div><br></div></div>