sys-fs/zfs: fix python detection without setuptools
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 23 Jan 2020 00:33:02 +0000 (16:33 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 23 Jan 2020 00:35:25 +0000 (16:35 -0800)
Closes: https://bugs.gentoo.org/706108
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-fs/zfs/zfs-0.8.2-r2.ebuild

index fea065189c3ffdfdbfca5416e7a8fb7a27ffd44f..341a978b2793027e5a43b7483bc48f6f05625f96 100644 (file)
@@ -124,6 +124,7 @@ src_prepare() {
 
 src_configure() {
        use custom-cflags || strip-flags
+       python_setup
 
        local myconf=(
                --bindir="${EPREFIX}/bin"
@@ -137,6 +138,7 @@ src_configure() {
                --with-linux="${KV_DIR}"
                --with-linux-obj="${KV_OUT_DIR}"
                --with-udevdir="$(get_udevdir)"
+               --with-python="${EPYTHON}"
                --with-systemdunitdir="$(systemd_get_systemunitdir)"
                --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
                $(use_enable debug)
@@ -180,7 +182,6 @@ src_install() {
        fi
 
        # enforce best available python implementation
-       python_setup
        python_fix_shebang "${ED}/bin"
 }