Re: [Distutils] cffi & Py_LIMITED_API

2016-08-20 Thread Nick Coghlan
On 21 August 2016 at 10:32, Daniel Holth wrote: > Coded up in https://bitbucket.org/pypa/wheel/pull-requests/69 and > https://github.com/pypa/pip/pull/3922 and supported in setuptools 26. > > It's a multi-step process, unfortunately, but if you do it correctly then > you should

Re: [Distutils] cffi & Py_LIMITED_API

2016-08-20 Thread Daniel Holth
Coded up in https://bitbucket.org/pypa/wheel/pull-requests/69 and https://github.com/pypa/pip/pull/3922 and supported in setuptools 26. It's a multi-step process, unfortunately, but if you do it correctly then you should need a lot fewer wheels: 0. Use only the functions from the limited api,

Re: [Distutils] cffi & Py_LIMITED_API

2016-08-02 Thread Nick Coghlan
On 2 August 2016 at 02:24, Daniel Holth wrote: > On Mon, Aug 1, 2016 at 12:01 PM Steve Dower wrote: >> The DLL tag on Windows will have to just be ".pyd" if you want to >> support back prior to 3.5. In 3.5 you can use ".cp35-win32.pyd" or >>

Re: [Distutils] cffi & Py_LIMITED_API

2016-08-01 Thread Daniel Holth
On Mon, Aug 1, 2016 at 12:01 PM Steve Dower wrote: > On 01Aug2016 0702, Nick Coghlan wrote: > > On 1 August 2016 at 23:36, Daniel Holth wrote: > >> build_ext command determines > >> the DLL extension. It could be patched or modified to read an "I'm

Re: [Distutils] cffi & Py_LIMITED_API

2016-08-01 Thread Steve Dower
On 01Aug2016 0702, Nick Coghlan wrote: On 1 August 2016 at 23:36, Daniel Holth wrote: build_ext command determines the DLL extension. It could be patched or modified to read an "I'm ABI3" flag on the Extension() object. We could pass an ABI3 flag to bdist_wheel in the same

Re: [Distutils] cffi & Py_LIMITED_API

2016-08-01 Thread Nick Coghlan
On 1 August 2016 at 23:36, Daniel Holth wrote: > On Mon, Aug 1, 2016 at 1:42 AM Nick Coghlan wrote: >> Status quo, on publication side: >> >> - require minimum cffi version 1.8 >> - build with setuptools >> - postprocessing step to rename shared library/DLL

Re: [Distutils] cffi & Py_LIMITED_API

2016-08-01 Thread Daniel Holth
On Mon, Aug 1, 2016 at 1:42 AM Nick Coghlan wrote: > On 1 August 2016 at 05:27, Daniel Holth wrote: > > The next version of cffi will contain small changes to generate code > > compliant with Python's Py_LIMITED_API: > >

Re: [Distutils] cffi & Py_LIMITED_API

2016-07-31 Thread Nick Coghlan
On 1 August 2016 at 05:27, Daniel Holth wrote: > The next version of cffi will contain small changes to generate code > compliant with Python's Py_LIMITED_API: > https://bitbucket.org/cffi/cffi/commits/8f867f5a869f > > (although cffi itself is not, the extensions it generates