<p dir="ltr">Let's say you have different code for python 3.3 and python 3.4+. Tag one wheel py33-none-any and the second py34-none-any. The second wheel is preferred on python 3.4 and above, but ignored by 3.3. The py3 tag wouldn't work well here.</p>
<p dir="ltr">Order of preference on 3.5 is: ('py35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')</p>
<p dir="ltr">Enscons would let you control the wheel tag directly but doesn't yet let you build multiple wheels with a single invocation.</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 29, 2016, 19:46 Donald Stufft <<a href="mailto:donald@stufft.io">donald@stufft.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Aug 29, 2016, at 7:34 PM, Brett Cannon <<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>> wrote:</div><br><div><div dir="ltr">Someone has asked that I do a new release of importlib that includes a LICENSE file on PyPI: <a href="https://pypi.org/project/importlib/" target="_blank">https://pypi.org/project/importlib/</a>. Historically I have had the setup.py simply not include any Python code when built on versions of Python that include importlib in the stdlib itself: <a href="https://github.com/brettcannon/importlib/blob/master/setup.py" target="_blank">https://github.com/brettcannon/importlib/blob/master/setup.py</a> .<div><br></div><div>But now I would like to do a wheel. Is there some way I'm not thinking of to have a wheel that will leave out code or not install itself if a certain version of Python is used? Or will the user have to specify a proper Python requirement in their requirements.txt to get that kind of experience?</div></div>
_______________________________________________<br>Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org" target="_blank">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></blockquote></div><div><br></div></div><div style="word-wrap:break-word">If your setup.py produces different output on different versions of Python, you’ll need multiple wheels.<br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><br>—</div></div></div><div style="word-wrap:break-word"><div><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><br>Donald Stufft<br></div></div></div>_______________________________________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</blockquote></div>