The default behavior of installing relative to prefix may be unexpected, and is definitely wrong in many cases. Give users control in order to specify that yes, they actually want to install to a venv. This is particularly useful for projects that use meson as a build system for a python module, where *all* files shall be installed into the python site-packages.pull/9788/head
parent
e8375d20a9
commit
78945fb983
4 changed files with 48 additions and 4 deletions
@ -0,0 +1,9 @@ |
||||
## New option to choose python installation environment |
||||
|
||||
It is now possible to specify `-Dpython.install_env` and choose how python modules are installed. |
||||
|
||||
- `venv`: assume that a virtualenv is active and install to that |
||||
- `system`: install to the global site-packages of the selected interpreter |
||||
(the one that the venv module calls --system-site-packages) |
||||
- `prefix`: preserve existing behavior |
||||
- `auto`: autodetect whether to use venv or system |
Loading…
Reference in new issue