Re: is sysconfig.get_path('purelib') local ?

2022-08-28 Thread Stefano Rivera
Hi Jerome (2022.08.28_12:41:18_+)
> > > You want to propagate the change to /usr/share/aclocal/ax_python_devel.m4
> > > distributed in autoconf-archive .
> > > (I localized the error there.)
> > Can you point at a package that FTBFS because of this? Or something
> > easily reproducible. It's really useful to have test cases, when
> > changing code you've never seen before.
> My brand new package graph-tool [1] that experienced a FTBFS during
> what should be a quiet 'Upload to unstable'.

Thanks, that's a beast of a package that wanted *all* my memory when
building with parallel=16 :)

But it gave me a good starting point to drive the autoconf macro.

Filed: https://bugs.debian.org/1018298 (and forwarded it upstream)

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Re: is sysconfig.get_path('purelib') local ?

2022-08-28 Thread Jerome BENOIT

Hello Stefano,

On 28/08/2022 11:01, Stefano Rivera wrote:

You want to propagate the change to /usr/share/aclocal/ax_python_devel.m4
distributed in autoconf-archive .
(I localized the error there.)

Can you point at a package that FTBFS because of this? Or something
easily reproducible. It's really useful to have test cases, when
changing code you've never seen before.



My brand new package graph-tool [1] that experienced a FTBFS during
what should be a quiet 'Upload to unstable'.


Cheers,
Jerome

[1] https://tracker.debian.org/pkg/graph-tool
--
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calcu...@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B


OpenPGP_signature
Description: OpenPGP digital signature


Re: is sysconfig.get_path('purelib') local ?

2022-08-28 Thread Jerome BENOIT

Hello Stefano,

On 28/08/2022 11:01, Stefano Rivera wrote:

I quote from that email:


The solution in build tools is to explicitly select the posix_prefix
scheme, and specify the appropriate prefix (/usr or /usr/local). For
build tools that default to /usr/local, this should be all you need to
do.

SR


I read it and it sounds reasonable. It is a Python approach. For configurations 
based on autotools,
it appears that the AX_PYTHON_DEVEL macro defined in ax_python_devel.m4 is 
currently lost.

hth,
Jerome
--
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calcu...@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B


OpenPGP_signature
Description: OpenPGP digital signature


Re: is sysconfig.get_path('purelib') local ?

2022-08-28 Thread Stefano Rivera
Hi Jerome (2022.08.27_21:24:48_+)
> You want to propagate the change to /usr/share/aclocal/ax_python_devel.m4
> distributed in autoconf-archive .
> (I localized the error there.)

Can you point at a package that FTBFS because of this? Or something
easily reproducible. It's really useful to have test cases, when
changing code you've never seen before.

> Otherwise, is there any keyword to get /usr/lib/python/dist-packages
> via sysconfig.get_path ? May we pass 'distlib' ?
> I guess it would be useful.

I quote from that email:

> The solution in build tools is to explicitly select the posix_prefix
> scheme, and specify the appropriate prefix (/usr or /usr/local). For
> build tools that default to /usr/local, this should be all you need to
> do.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Re: is sysconfig.get_path('purelib') local ?

2022-08-27 Thread Jerome BENOIT

Hi  Stefano, thanks for the reply.

On 27/08/2022 22:13, Stefano Rivera wrote:

Hi Jerome (2022.08.27_18:01:45_+)

in the current Sid (Python 3.10.6),

$ python3 -c "import sysconfig; print (sysconfig.get_path('purelib'));"

gives

/usr/local/lib/python3.10/dist-packages

I suspect that it formaly gave (< Python 3.10.6)

/usr/lib/python3.10/dist-packages


Correct, see:
https://lists.debian.org/debian-python/2022/03/msg00039.html


You want to propagate the change to /usr/share/aclocal/ax_python_devel.m4
distributed in autoconf-archive .
(I localized the error there.)

Otherwise, is there any keyword to get /usr/lib/python/dist-packages
via sysconfig.get_path ? May we pass 'distlib' ?
I guess it would be useful.

Cheers,
Jerome




SR



--
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calcu...@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B


OpenPGP_signature
Description: OpenPGP digital signature


Re: is sysconfig.get_path('purelib') local ?

2022-08-27 Thread Stefano Rivera
Hi Jerome (2022.08.27_18:01:45_+)
> in the current Sid (Python 3.10.6),
> 
> $ python3 -c "import sysconfig; print (sysconfig.get_path('purelib'));"
> 
> gives
> 
> /usr/local/lib/python3.10/dist-packages
> 
> I suspect that it formaly gave (< Python 3.10.6)
> 
> /usr/lib/python3.10/dist-packages

Correct, see:
https://lists.debian.org/debian-python/2022/03/msg00039.html

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



is sysconfig.get_path('purelib') local ?

2022-08-27 Thread Jerome BENOIT

Hello,
 
in the current Sid (Python 3.10.6),


$ python3 -c "import sysconfig; print (sysconfig.get_path('purelib'));"

gives

/usr/local/lib/python3.10/dist-packages

I suspect that it formaly gave (< Python 3.10.6)

/usr/lib/python3.10/dist-packages


What is actually the expected answer ?

Cheers,
Jerome

--
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calcu...@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B