<p dir="ltr"><br>
On 28 Jan 2014 23:29, "Daniel Holth" <<a href="mailto:dholth@gmail.com">dholth@gmail.com</a>> wrote:<br>
><br>
> +1<br>
><br>
> However, on Windows, I don't see most of the config vars. At least the<br>
> Unicode width is easy to get at in other ways.</p>
<p dir="ltr">It's less of an issue on Windows, since we're already assuming <a href="http://python.org">python.org</a> binary compatibility in most cases anyway.</p>
<p dir="ltr">However, I'll have a look and see if this info is exposed any other way.</p>
<p dir="ltr">> We also need to update the PEP/implementation to allow/add to the list<br>
> of supported tags "py2.py3-none-(arch)" for cffi-type "doesn't use the<br>
> ABI" extensions. This might just be a bug in the implementation...</p>
<p dir="ltr">That's definitely supposed to be allowed by the spec, specifically for that ctypes/cffi style use case.  Now, whether the tools currently provide a way to *generate* a tag like that is a different question :)</p>

<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> On Tue, Jan 28, 2014 at 5:40 AM, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
> > Currently, bdist_wheel doesn't set the ABI tag properly on Python 2.x<br>
> > - the SOABI symbol it expects to find isn't present. PEP 425 also<br>
> > disclaims dealing with the problem.<br>
> ><br>
> > However, PEP 3149 (which defined SOABI) explains how to define that<br>
> > based on 3 other syconfig flags: Py_DEBUG, Py_UNICODE_SIZE and<br>
> > WITH_PYMALLOC<br>
> ><br>
> >>>> sysconfig.get_config_var("SOABI")<br>
> >>>> sysconfig.get_config_var("Py_DEBUG")<br>
> > 0<br>
> >>>> sysconfig.get_config_var("Py_UNICODE_SIZE")<br>
> > 4<br>
> >>>> sysconfig.get_config_var("WITH_PYMALLOC")<br>
> > 1<br>
> ><br>
> > With those settings and the platform module (to get the current<br>
> > implementation), it is possible to figure out that the wheel ABI tag<br>
> > should be:<br>
> ><br>
> >     cp27mu<br>
> ><br>
> > If Py_DEBUG was true, then it would be "cp27dmu"<br>
> > If WITH_PYMALLOC was false for some reason: "cp27u"<br>
> > And for a narrow Unicode build: "cp27m"<br>
> ><br>
> > That way, the ABI tagging would work properly in 2.x as well, rather<br>
> > than people getting the impression that wheels can't mark the ABI<br>
> > compatibility requirements properly.<br>
> ><br>
> > Cheers,<br>
> > Nick.<br>
> ><br>
> > --<br>
> > Nick Coghlan   |   <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>   |   Brisbane, Australia<br>
> > _______________________________________________<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">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</p>