diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-26 14:59:59 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-29 00:01:20 +0100 |
commit | d5b7d1b42500509d31a385fbae77facab02769b7 (patch) | |
tree | ad2d07fab3d4bda4f7dc52f7f4d7192ce0a425a4 /gnome-extra/cinnamon-menus | |
parent | x11-misc/picom: update python versions (diff) | |
download | gentoo-d5b7d1b42500509d31a385fbae77facab02769b7.tar.gz gentoo-d5b7d1b42500509d31a385fbae77facab02769b7.tar.bz2 gentoo-d5b7d1b42500509d31a385fbae77facab02769b7.zip |
distutils-r1.eclass: Set script shebangs to venv in PEP 517
Alter the shebangs of generated scripts to point out the to venv Python
executables in PEP 517 mode. Otherwise, the executables are run with
system Python during the test run and therefore do not use the venv.
For convenience, rather than modifying them back just copy them
immediately into the python-exec directory. This means that instead of
reverting some of our python_compile() changes in python_install()
and then moving scripts to the python-exec directory, we can just
discard /usr/bin and let the wrapping logic recreate it.
While at it, stop repeating ${root}${EPREFIX}/usr/bin multiple times
in python_compile(). Just shove it into a helper variable. Also move
pyvenv.cfg inside bindir for convenience — Python is fine with either
location.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'gnome-extra/cinnamon-menus')
0 files changed, 0 insertions, 0 deletions