Re: PEP-668, cmake FindPython Python_SITEARCH and rpm_prefix

2023-10-25 Thread Sandro Mani
On 25.10.23 02:20, Neal Gompa wrote: On Tue, Oct 24, 2023 at 5:18 PM Sandro Mani wrote: Hi Since some time, Fedora's cmake FindPython will return Python_SITEARCH=/usr/local/lib64/pythonX.Y/site-packages, which results in possible failure to find python libraries below the system site packag

Re: PEP-668, cmake FindPython Python_SITEARCH and rpm_prefix

2023-10-24 Thread Neal Gompa
On Tue, Oct 24, 2023 at 5:18 PM Sandro Mani wrote: > > Hi > > Since some time, Fedora's cmake FindPython will return > Python_SITEARCH=/usr/local/lib64/pythonX.Y/site-packages, which results in > possible failure to find python libraries below the system site packages dir > (aka shipped by RPMs

PEP-668, cmake FindPython Python_SITEARCH and rpm_prefix

2023-10-24 Thread Sandro Mani
Hi Since some time, Fedora's cmake FindPython will return Python_SITEARCH=/usr/local/lib64/pythonX.Y/site-packages, which results in possible failure to find python libraries below the system site packages dir (aka shipped by RPMs). A workaround(?) is to call EXECUTE_PROCESS(COMMAND ${Python