• is sysconfig.get_path('purelib') local ?

    From Jerome BENOIT@21:1/5 to All on Sat Aug 27 20:40:02 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Sat Aug 27 22:20:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jerome BENOIT@21:1/5 to All on Sat Aug 27 23:50:01 2022
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------h0Qq3N3J6JV0D1k8adjRgcec
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    SGkgIFN0ZWZhbm8sIHRoYW5rcyBmb3IgdGhlIHJlcGx5Lg0KDQpPbiAyNy8wOC8yMDIyIDIy OjEzLCBTdGVmYW5vIFJpdmVyYSB3cm90ZToNCj4gSGkgSmVyb21lICgyMDIyLjA4LjI3XzE4 OjAxOjQ1XyswMDAwKQ0KPj4gaW4gdGhlIGN1cnJlbnQgU2lkIChQeXRob24gMy4xMC42KSwN Cj4+DQ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zEr8KlZr8BKMUQr5w+QknH yHAC58fnCvBteWRKeEoEk0tcogP4mi4HIWiojP2w+0IphKMjhEx8SmI0tr2MpeEHgZmgP8iMBhd4 mUdCcGpNTffBk8UdPfhPVQUTvmL2H/bhru0u7+x+fcOlCuitP8DOEODstHVnDfoeCmdu5XbT+Ypy a8f57cUm5bpsFUG0gruBrmyDrJSk8jixbbBPGfxBXBiXzdOXrIQpu7GWZXaK22Mx0dvA2Af0L9El s3nb+zeX77WWBPLtvCSUNLWGlLQoUvQ7EO5jZHvjFu8C748xvfjs48XetkIpJYM/Vd2KbJMcHet5 mDNwOTma3VlK6sDJr/p2LeHdLalvBnibV7BY4k7LnNJacB2K7qa/2fzK+3JxOBbIPK9cD8GKWXI8 znHI/hUEg8uUTjgsNcVv8mju9Wy8893fL2zdVYcWaZuJcBcf0Spgud2BooCqJYfu7RIjEwPeJd1v 0Q==
    =DLt6
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Sun Aug 28 11:10:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jerome BENOIT@21:1/5 to All on Sun Aug 28 15:00:01 2022
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------qBfiHkqxwdz3c7wWbyzzQKy1
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    SGVsbG8gU3RlZmFubywNCg0KT24gMjgvMDgvMjAyMiAxMTowMSwgU3RlZmFubyBSaXZlcmEg d3JvdGU6DQo+IEkgcXVvdGUgZnJvbSB0aGF0IGVtYWlsOg0KPiANCj4+IFRoZSBzb2x1dGlv biBpbiBidWlsZCB0b29scyBpcyB0byBleHBsaWNpdGx5IHNlbGVjdCB0aGUgcG9zaXhfcHJl Zml4DQo+PiBzY2hlbWUsIGFuZCBzcGVjaWZ5IHRoZSBhcHByb3ByaWF0ZSBwcmVmaXggKC91 c3Igb3IgL3Vzci9sb2NhbCkuIEZvcg0KPj4gYnVpbGQgdG9vbHMgdGhhdCBkZWZhdWx0IHRv IC91c3IvbG9jYWwsIHRoaXMgc2hvdWxkIGJlIGFsbCB5b3UgbmVlZCB0bw0KPj4gZG8uDQo+ IFNSDQoNCkkgcmVhZCBpdCBhbmQgaXQgc291bmRzIHJlYXNvbmFibGUuIEl0IGlzIGEgUHl0 aG9uIGFwcHJvYWNoLiBGb3IgY29uZmlndXJhdGlvbnMgYmFzZWQgb24gYXV0b3Rvb2xzLA0K aXQgYXBwZWFycyB0aGF0IHRoZSBBWF9QWVRIT05fREVWRUwgbWFjcm8gZGVmaW5lZCBpbiBh eF9weXRob25fZGV2ZWwubTQgaXMgY3VycmVudGx5IGxvc3QuDQoNCmh0aCwNCkplcm9tZQ0K LS0gDQpKZXJvbWUgQkVOT0lUIHwgY2FsY3VsdXMrYXQtcmV6b3plcl5kb3QqbmV0DQpodHRw czovL3FhLmRlYmlhbi5vcmcvZGV2ZWxvcGVyLnBocD9sb2dpbj1jYWxjdWx1c0ByZXpvemVy Lm5ldA0KQUUyOCBBRTE1IDcxMEQgRkYxRCA4N0U1ICBBNzYyIDNGOTIgMTlBNiA3RjM2IEM2 OEINCg==

    --------------qBfiHkqxwdz3c7wWbyzzQKy1--

    -----BEGIN PG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N2t43ZS8psKNSd0RQQ2V4fr8cXDmfEV0tPpHfROBQ9Rw9DWCsn7LwCaiafCm4rl2C6d7n2 UNs3TAc6zzolCcN7lHzw1lSXq/NnR1cnzxlk+IPRle9YfHg8cEUnx60uyQWGAn7P0Xc4p7Igmi9H m85+fk2Ci9UClG23pFAyUkyBMwSF6JL2iVwlnYEZ6mUAeDcQmlY+AROA66BIGKUsJfWkfTA/DxpX jZotRCnf5DBb44jC5RgwBaU8RIcSFIgT1wpIwYbPj8Zq2RkvT78PQqWYv+TDbi/ayZxh633Vs/Ix nFd9Uq3+SGu5k6CYPxWvEx53tzAaZcuyg2U74ah1HpOIQv3KgfyPvX/izsnrDAuExeWVAeARxNCd zw==
    =5uhW
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Sun Aug 28 19:30:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)