diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-08 17:10:05 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-08 20:05:39 +0200 |
commit | 3adbe305677653d372da5973ac19b6b547f27312 (patch) | |
tree | 8df24418ef6126601b0281509603683a3b9ad8db /eclass | |
parent | virtual/dist-kernel: Bump to 5.10.110 (diff) | |
download | gentoo-3adbe305677653d372da5973ac19b6b547f27312.tar.gz gentoo-3adbe305677653d372da5973ac19b6b547f27312.tar.bz2 gentoo-3adbe305677653d372da5973ac19b6b547f27312.zip |
distutils-r1.eclass: Fix PEP517 + single-impl w/ no scripts
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 1724804687a1..02d8bf547cba 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1274,7 +1274,10 @@ distutils-r1_python_install() { # are already in scriptdir rm -r "${root}${scriptdir}" || die if [[ ${DISTUTILS_SINGLE_IMPL} ]]; then - mv "${root}$(python_get_scriptdir)" "${root}${scriptdir}" || die + local wrapped_scriptdir=${root}$(python_get_scriptdir) + if [[ -d ${wrapped_scriptdir} ]]; then + mv "${wrapped_scriptdir}" "${root}${scriptdir}" || die + fi fi else local root=${D%/}/_${EPYTHON} |