Re: distutils use in hivex libdnet libnbd (and more) [was: Re: Help needed triaging build failures without distutils]

2022-10-24 Thread Richard W.M. Jones
[Sending again since it didn't reach the Python-devel list first time] On Tue, Oct 18, 2022 at 10:53:12AM +0100, Richard W.M. Jones wrote: > On Tue, Oct 18, 2022 at 11:27:47AM +0200, Miro Hrončok wrote: > > Hey Pythonistas. > > > > The Python standard library distutils module will be removed from

Re: [Libguestfs] distutils use in hivex libdnet libnbd (and more) [was: Re: Help needed triaging build failures without distutils]

2022-10-24 Thread Richard W.M. Jones
[Sending 2nd email again since it didn't reach the Python-devel list first time] On Tue, Oct 18, 2022 at 11:13:47AM +0100, Richard W.M. Jones wrote: > On Tue, Oct 18, 2022 at 10:53:12AM +0100, Richard W.M. Jones wrote: > > https://github.com/libguestfs/libguestfs/blob/master/m4/guestfs-python.m4

Re: Replacing pytest -n auto with pytest -n %{_smp_build_ncpus}

2022-10-24 Thread Miro Hrončok
On 12. 07. 22 11:50, Miro Hrončok wrote: On 12. 07. 22 11:25, Petr Viktorin wrote: Or pytest-xdist could be taught to check an environment variable for `auto`, making this seamless for packagers? This could work, except that sometimes pytest-xdist is installed and we don't want to run tests

Re: [Libguestfs] distutils use in hivex libdnet libnbd (and more) [was: Re: Help needed triaging build failures without distutils]

2022-10-24 Thread Miro Hrončok
On 24. 10. 22 15:14, Richard W.M. Jones wrote: Original code: $ python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0));' /usr/lib64/python3.11/site-packages Potential replacement: $ python3 -c 'import sysconfig; print(sysconfig.get_path("platlib"));'

Re: [Libguestfs] distutils use in hivex libdnet libnbd (and more) [was: Re: Help needed triaging build failures without distutils]

2022-10-24 Thread Richard W.M. Jones
On Mon, Oct 24, 2022 at 06:00:31PM +0200, Miro Hrončok wrote: > On 24. 10. 22 15:14, Richard W.M. Jones wrote: > >Original code: > > > > $ python3 -c 'import distutils.sysconfig; > > print(distutils.sysconfig.get_python_lib(1,0));' > > /usr/lib64/python3.11/site-packages > > > >Potential repla

Re: distutils use in hivex libdnet libnbd (and more) [was: Re: Help needed triaging build failures without distutils]

2022-10-24 Thread Miro Hrončok
On 24. 10. 22 12:46, Richard W.M. Jones wrote: I'm not sure what could have happened here. The RPM would have failed to build if the Python bindings had been ./configure-d out. The link shows libguestfs as "not build yet / Disabled": https://copr.fedorainfracloud.org/coprs/g/python/python-