diff options
| author | Michał Górny <mgorny@gentoo.org> | 2022-03-31 23:09:30 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2022-04-02 18:29:46 +0200 |
| commit | 85820b0b54f298e1d96a4bc3ed9cd4952a46aea0 (patch) | |
| tree | 43dd0ded7070d8006ccb97724c9be1ddf9e7b5c3 /dev-cpp/cpp-taskflow/cpp-taskflow-9999.ebuild | |
| parent | 6c3fdd7708d216311b7f12b404b24b720c710433 (diff) | |
| download | gentoo-85820b0b54f298e1d96a4bc3ed9cd4952a46aea0.tar.gz gentoo-85820b0b54f298e1d96a4bc3ed9cd4952a46aea0.tar.bz2 gentoo-85820b0b54f298e1d96a4bc3ed9cd4952a46aea0.zip | |
python-utils-r1.eclass: Make python_fix_shebang force full path
Change the behavior of python_fix_shebang to always output full path
to the Python interpreter (i.e. ${PYTHON}) instead of mangling
the original path. Most importantly, this ensures that:
1. EPREFIX is included in the final path
2. /usr/bin/env is replaced by the absolute path to avoid issues
when calling system executables from inside a venv
Note that this implies that a few unlikely corner cases may stop
working, notably:
a. "weird" shebangs such as "/usr/bin/foo python" will no longer work
b. the mangled scripts will escape temporary venv e.g. created
in distutils-r1 PEP517 mode (python_fix_shebang is not used in such
a way in ::gentoo)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-cpp/cpp-taskflow/cpp-taskflow-9999.ebuild')
0 files changed, 0 insertions, 0 deletions
