2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00
waf/waflib
Federico Pellegrin fc7b01e694 python: use PREFIX in install directory if it is set
As a regression / misbehaviour compared to waf 2.0 when a Python
module is installed it seems that, even tho `PREFIX` is set for the whole
project, it is ignored.

In the past this was not ignored, namely:

```
(pydir,) = conf.get_python_variables(["get_python_lib(standard_lib=0, prefix=%r) or ''" % conf.env.PREFIX])
```

While with the current version we would always get (if not forced
with specific `PYTHONDIR` and `PYTHONARCHDIR`) the hardcoded path defined
at compilation time (`/usr/local/lib` in all cases I saw)

This patch takes this into account, using the user schema that permits to
customize the output passing the userbase variable, which is set to `PREFIX`
value indeed.

sysconfig.get_preferred_scheme('user') could give us the user schema, but
this is Python >= 3.10 only, so instead we construct the name manually
depending on the OS.
2024-08-14 06:05:53 +02:00
..
extras pyqt5: extend support to Qt6 (both PyQt6 and PySide6) 2024-08-09 08:52:37 +02:00
Tools python: use PREFIX in install directory if it is set 2024-08-14 06:05:53 +02:00
__init__.py
ansiterm.py Lock wafcache on non-posix systems 2024-04-01 17:02:15 +02:00
Build.py
ConfigSet.py
Configure.py Update Configure.check_waf_version 2024-08-14 07:52:15 +08:00
Context.py waf-2.1.2 2024-07-15 07:32:34 +08:00
Errors.py
fixpy2.py Due to arparse, Python >= 2.7 is now required 2024-05-21 20:36:19 +02:00
Logs.py
Node.py
Options.py Options: set argparse conflict_handler in constructor 2024-05-26 07:55:05 +00:00
processor.py
Runner.py Change _add_task to add_task in Runner.py - part 2 2024-04-01 09:35:13 +02:00
Scripting.py Another Python regression 2024-07-13 23:06:31 +08:00
Task.py
TaskGen.py Update more examples 2024-05-21 20:35:25 +02:00
Utils.py Python/Msys2 regression #2440 2024-07-04 08:49:11 +02:00