
Hi Some software depends on python-config however PyPy does not provide an equivalent pypy-config. Are there any plans/workarounds to provide such a bin? Regards D

On 20/10/16 20:19, David Naylor wrote:
I actually ran into this yesterday, as I tried to build wxPython which uses SIP whose build system uses python-config. AFAICT, python-config is provided by the downstream package maintainer. For instance, in debian it is provided by their python-dev package. Since it is not an integral part of python, I'm not sure it should be an integral part of pypy, but it is trivial to copy-and-modify. FWIW, I am attatching the one I used, YMMV. Also, note that in building wxPython I discovered that we do not yet support enough of the C-API to use SIP, so I assume PyQT/PySide will fail as well. The issue is in siplib.c's sipWrapperType_alloc, since we do not yet (may not ever?) support overriding tp_alloc. Matti

On Thu, 20 Oct 2016, Matti Picus wrote:
Hi Matti, FYI, this used to be the case a long while ago, but python-config has been integrated into Python 2.5 since ~2006: https://mail.python.org/pipermail/patches/2006-April/019478.html -- Sincerely yours, Yury V. Zaytsev

Hi, On 20 October 2016 at 21:18, Yury V. Zaytsev <yury@shurup.com> wrote:
I can only recommend that someone submits a pull request for it, or at least a comprehensive description of when it is used and what it should answer (ideally as a series of tests). I don't have any good way to test the result myself and I don't want to guess. A bientôt, Armin.

On 02/11/16 12:41, Armin Rigo wrote: python-config script from CPython. The script itself lives in the top-level PyPy directory on that branch and can be run with "--help" to see the options Tests are definitely needed, optimally the tests would use the flags from the script to try to compile some C code. As far as real-world use cases, PyQt uses this script. Of course, fixing this will not magically make PyQt work, we need to finish the missing-tp_new branch and a way to override tp_alloc. Matti

On 20/10/16 20:19, David Naylor wrote:
I actually ran into this yesterday, as I tried to build wxPython which uses SIP whose build system uses python-config. AFAICT, python-config is provided by the downstream package maintainer. For instance, in debian it is provided by their python-dev package. Since it is not an integral part of python, I'm not sure it should be an integral part of pypy, but it is trivial to copy-and-modify. FWIW, I am attatching the one I used, YMMV. Also, note that in building wxPython I discovered that we do not yet support enough of the C-API to use SIP, so I assume PyQT/PySide will fail as well. The issue is in siplib.c's sipWrapperType_alloc, since we do not yet (may not ever?) support overriding tp_alloc. Matti

On Thu, 20 Oct 2016, Matti Picus wrote:
Hi Matti, FYI, this used to be the case a long while ago, but python-config has been integrated into Python 2.5 since ~2006: https://mail.python.org/pipermail/patches/2006-April/019478.html -- Sincerely yours, Yury V. Zaytsev

Hi, On 20 October 2016 at 21:18, Yury V. Zaytsev <yury@shurup.com> wrote:
I can only recommend that someone submits a pull request for it, or at least a comprehensive description of when it is used and what it should answer (ideally as a series of tests). I don't have any good way to test the result myself and I don't want to guess. A bientôt, Armin.

On 02/11/16 12:41, Armin Rigo wrote: python-config script from CPython. The script itself lives in the top-level PyPy directory on that branch and can be run with "--help" to see the options Tests are definitely needed, optimally the tests would use the flags from the script to try to compile some C code. As far as real-world use cases, PyQt uses this script. Of course, fixing this will not magically make PyQt work, we need to finish the missing-tp_new branch and a way to override tp_alloc. Matti
participants (4)
-
Armin Rigo
-
David Naylor
-
Matti Picus
-
Yury V. Zaytsev