[issue662] get_config_vars has nothing for CC, while expected internally

New submission from Martijn <ss@kleptog.org>: Currently distutils.sysconfig.get_config_vars() has no value for CC. This means that when you try to build a C extension using distutils it breaks, because distutils internally uses get_config_vars() to determine the compiler (distutils/ccompiler.py). Attached is a patch that works for me, with this C extensions build normally (excluding cpyext problems). But this may be a layering violation, so I'll leave it to you guys to determine the correct fix. In any case it's an improvement which improves compatibility. ---------- effort: ??? files: distutils.patch messages: 2267 nosy: kleptog, pypy-issue priority: feature release: ??? status: unread title: get_config_vars has nothing for CC, while expected internally _______________________________________________________ PyPy development tracker <pypy-dev-issue@codespeak.net> <https://codespeak.net/issue/pypy-dev/issue662> _______________________________________________________

Fijal <fijall@gmail.com> added the comment: I don't think creating a makefile is really that great idea. Maybe we should have a python file created during translation that contains all the information? Sorry for a very late response. Cheers, fijal ---------- nosy: +fijal ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue662> ________________________________________

Martijn <ss@kleptog.org> added the comment: Well, you could do that. The goal here was to be able to use an unmodified distutils. If however you don't mind maintaining a private copy of distutils then other solutions are possible. ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue662> ________________________________________

Carl Friedrich Bolz <cfbolz@gmx.de> added the comment: indeed, the top-level sysconfig.get_config_vars() still does not return a value for CC, so that still needs to be fixed. ---------- nosy: +cfbolz status: testing -> chatting title: [PATCH] functional distutils for installing C extensions -> sysconfig.get_config_vars() has no value for CC ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue662> ________________________________________
participants (4)
-
Carl Friedrich Bolz
-
Fijal
-
Martijn
-
Martijn