On 02/11/16 12:41, Armin Rigo wrote:
Hi,
On 20 October 2016 at 21:18, Yury V. Zaytsev <y...@shurup.com> wrote:
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.
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
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.
I started work on this on the pypy-config branch, I copied the
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
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev