Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14390 > unrolled thread

is sysconfig.get_path('purelib') local ?

Started byJerome BENOIT <calculus@rezozer.net>
First post2022-08-27 20:40 +0200
Last post2022-08-28 19:30 +0200
Articles 7 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  is sysconfig.get_path('purelib') local ? Jerome BENOIT <calculus@rezozer.net> - 2022-08-27 20:40 +0200
    Re: is sysconfig.get_path('purelib') local ? Stefano Rivera <stefanor@debian.org> - 2022-08-27 22:20 +0200
      Re: is sysconfig.get_path('purelib') local ? Jerome BENOIT <calculus@rezozer.net> - 2022-08-27 23:50 +0200
        Re: is sysconfig.get_path('purelib') local ? Stefano Rivera <stefanor@debian.org> - 2022-08-28 11:10 +0200
          Re: is sysconfig.get_path('purelib') local ? Jerome BENOIT <calculus@rezozer.net> - 2022-08-28 15:00 +0200
          Re: is sysconfig.get_path('purelib') local ? Jerome BENOIT <calculus@rezozer.net> - 2022-08-28 15:00 +0200
            Re: is sysconfig.get_path('purelib') local ? Stefano Rivera <stefanor@debian.org> - 2022-08-28 19:30 +0200

#14390 — is sysconfig.get_path('purelib') local ?

FromJerome BENOIT <calculus@rezozer.net>
Date2022-08-27 20:40 +0200
Subjectis sysconfig.get_path('purelib') local ?
Message-ID<EZ8SS-3tGh-13@gated-at.bofh.it>
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=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B

[toc] | [next] | [standalone]


#14391

FromStefano Rivera <stefanor@debian.org>
Date2022-08-27 22:20 +0200
Message-ID<EZarD-3uGf-3@gated-at.bofh.it>
In reply to#14390
Hi Jerome (2022.08.27_18:01:45_+0000)
> 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

[toc] | [prev] | [next] | [standalone]


#14392

FromJerome BENOIT <calculus@rezozer.net>
Date2022-08-27 23:50 +0200
Message-ID<EZbQJ-3vtd-1@gated-at.bofh.it>
In reply to#14391

[Multipart message — attachments visible in raw view] — view raw

Hi  Stefano, thanks for the reply.

On 27/08/2022 22:13, Stefano Rivera wrote:
> Hi Jerome (2022.08.27_18:01:45_+0000)
>> 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<PV>/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=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B

[toc] | [prev] | [next] | [standalone]


#14393

FromStefano Rivera <stefanor@debian.org>
Date2022-08-28 11:10 +0200
Message-ID<EZmsN-3CHb-1@gated-at.bofh.it>
In reply to#14392
Hi Jerome (2022.08.27_21:24:48_+0000)
> 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<PV>/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

[toc] | [prev] | [next] | [standalone]


#14394

FromJerome BENOIT <calculus@rezozer.net>
Date2022-08-28 15:00 +0200
Message-ID<EZq3n-3EDn-17@gated-at.bofh.it>
In reply to#14393

[Multipart message — attachments visible in raw view] — view raw

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=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B

[toc] | [prev] | [next] | [standalone]


#14395

FromJerome BENOIT <calculus@rezozer.net>
Date2022-08-28 15:00 +0200
Message-ID<EZq3n-3EDn-19@gated-at.bofh.it>
In reply to#14393

[Multipart message — attachments visible in raw view] — view raw

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=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B

[toc] | [prev] | [next] | [standalone]


#14396

FromStefano Rivera <stefanor@debian.org>
Date2022-08-28 19:30 +0200
Message-ID<EZugF-3Hhz-5@gated-at.bofh.it>
In reply to#14395
Hi Jerome (2022.08.28_12:41:18_+0000)
> > > 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web