[packages/python] Prevent pyconfig.h conflicts on multiarch systems
Jakub Bogusz
qboosh at pld-linux.org
Wed Dec 2 15:35:18 CET 2015
On Wed, Dec 02, 2015 at 02:56:28PM +0100, Jacek Konieczny wrote:
> On 2015-12-02 13:03, Elan Ruusamäe wrote:
> >>How would you convince python library to parse this file correctly?
> >>Another PLD-specific Python patch, which would cause many standard
> >>Python packages to fail?
> >>
> >>My solution is not pretty, but doesn't change a thing from the Python
> >>perspective.
> >
> >ee, what patch?
>
> At least for this:
> https://github.com/python/cpython/blob/master/Lib/sysconfig.py#L422
>
> There might be other Python code parsing this header, as it is
> considered a part of standard Python interface.
>
> >i'm speaking of installing "config.h" from static source111, and python
> >original rename as config-ARCH.h when packaging.
> >and the preprocessor macros are generic, from compiler
>
> But this file is not only used by the C compiler. If it would be the
> case, then we would ship the file in the -devel package and not the
> -libs packages and there would be no problem.
get_config_h_filename() should return the ABI-specific file for multilib
installs to work correctly.
--
Jakub Bogusz http://qboosh.pl/
More information about the pld-devel-en
mailing list