GNU bug report logs -
#54412
[PATCH] python: use the posix_prefix sysconfig scheme on Debian
Previous Next
Reported by: Stefano Rivera <stefanor <at> debian.org>
Date: Tue, 15 Mar 2022 23:43:02 UTC
Severity: normal
Tags: patch
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 54412 <at> debbugs.gnu.org (full text, mbox):
Hi Karl (2022.03.16_21:25:45_+0000)
> 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 = "/usr"
include = "/usr/include/python3.9"
platinclude = "/usr/include/python3.9"
platlib = "/usr/lib/python3.9/site-packages"
platstdlib = "/usr/lib/python3.9"
purelib = "/usr/lib/python3.9/site-packages"
scripts = "/usr/bin"
stdlib = "/usr/lib/python3.9"
...
prefix = "/usr"
...
To this:
$ python3.10 -m sysconfig
Current installation scheme: "posix_local"
Paths:
data = "/usr/local"
include = "/usr/local/include/python3.10"
platinclude = "/usr/local/include/python3.10"
platlib = "/usr/local/lib/python3.10/dist-packages"
platstdlib = "/usr/lib/python3.10"
purelib = "/usr/local/lib/python3.10/dist-packages"
scripts = "/usr/local/bin"
stdlib = "/usr/lib/python3.10"
...
prefix = "/usr"
...
The "posix_local" scheme uses {prefix}/local/lib/... That's the issue.
> Does your patch change the default behavior of Automake? I gather not,
> but ...
This patch restores the previous (pre 3.10) behaviour. If you use --prefix
/usr, it installs modules to /usr, with --prefix /usr/local, it installs to
/usr/local.
> Also, it feels like there should be some documentation about this.
> Can you write something brief? --thanks, karl.
I think it shouldn't affect users. If anything needs to be documented, it's:
Automake will select the posix_prefix scheme instead of posix_local, on Debian
Python 3.10+. To install modules into /usr/local, instead of /usr, use --prefix
/usr/local.
SR
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
This bug report was last modified 1 year and 177 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.