[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2024-01-23 Thread Karl Berry
Guess it's time to close this one about the Python scheme to use with Debian. We'll see how it turns out with the next pretest ... --thanks, karl.

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2024-01-20 Thread Karl Berry
Hi Stefano, I'm not aware of anyone else using posix_local. Well, I don't know how to check for the deb_system scheme being present, so I made the assumption. How does this change look? Are the descriptions correct? I also pulled out the common "scheme-setting" code into a variable. Thanks,

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2024-01-18 Thread stefanor
Hi Karl (2024.01.18_22:58:30_+) > if default_scheme == 'posix_local': # Debian > > posix_local only exists on Debian, not any other system? > The name is generic. Yes, it's a Debianism. It was the best way to get "setup.py install" to direct to /usr/local by default, on Debian systems, a

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2024-01-18 Thread Karl Berry
Hi Stefano, returning automake behaviour back to what it used to be. That seems like a good outcome to me. I wasn't actually looking to improve on that result :). if default_scheme == 'posix_local': # Debian posix_local only exists on Debian, not any other system? The name is generic.

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2024-01-17 Thread stefanor
Hi Karl (2024.01.17_22:48:30_+) > Gianfranoc, Stefano - thanks much for the patch wrt Automake and Debian > Python posix_local vs. posix_prefix. Below is what I installed -- the > code change is substantively the same as what you wrote; I just took the > extra try..catch that Bogdan added. > >

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2024-01-17 Thread Karl Berry
Gianfranoc, Stefano - thanks much for the patch wrt Automake and Debian Python posix_local vs. posix_prefix. Below is what I installed -- the code change is substantively the same as what you wrote; I just took the extra try..catch that Bogdan added. I changed the paragraph in the manual about pyt

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2022-03-18 Thread stefanor
Hi Karl (2022.03.16_21:25:45_+) Oops, somehow I missed that this patch failed on older versions of cPython. This version is compatible back to 2.7.4. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272 From b07451795dc4626ca348cd1fd743d41a87daca61 Mon Sep 17 00:00:00 2001 Fro

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2022-03-16 Thread stefanor
Hi Karl (2022.03.16_21:25:45_+) > Stefano, Gianfranco - thanks for this. Forgive my ignorance, but I don't > use Debian, or Python, and have never the term "sysconfig scheme" before. Compare these: $ python3.9 -m sysconfig Current installation scheme: "posix_prefix" Paths: data = "/

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2022-03-16 Thread Karl Berry
Stefano, Gianfranco - thanks for this. Forgive my ignorance, but I don't use Debian, or Python, and have never the term "sysconfig scheme" before. Does your patch change the default behavior of Automake? I gather not, but ... Also, it feels like there should be some documentation about this. Can

[bug#54412] [PATCH] python: use the posix_prefix sysconfig scheme on Debian

2022-03-15 Thread Stefano Rivera
Fixes Debian's bug: https://bugs.debian.org/1006784 Debian adds a custom sysconfig scheme to system python installs, "posix_local". This is the default scheme, and it redirects local users' Python module installs to /usr/local even though Python is installed with a /usr prefix. Both are on Debian'