diff --git a/meta/recipes-connectivity/kea/kea_3.0.3.bb b/meta/recipes-connectivity/kea/kea_3.0.3.bb
index f5ca2b16eec..1c3dae15958 100644
--- a/meta/recipes-connectivity/kea/kea_3.0.3.bb
+++ b/meta/recipes-connectivity/kea/kea_3.0.3.bb
@@ -25,7 +25,7 @@ SRC_URI = "http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.xz \
            "
 SRC_URI[sha256sum] = "09702ddb078b637e85de9236cbedd3fb9d7af7c6e797026c538b45748ad4d631"
 
-inherit meson pkgconfig systemd update-rc.d upstream-version-is-even
+inherit meson pkgconfig systemd update-rc.d upstream-version-is-even python3-dir
 
 # install-umask can be removed when upgrading to 3.1.19 onwards
 # https://gitlab.isc.org/isc-projects/kea/-/commit/d9f332a6f36f8056a54b0698d4672a67aea812ba
@@ -101,7 +101,7 @@ CONFFILES:${PN} = "${sysconfdir}/kea/kea-ctrl-agent.conf \
                   "
 
 PACKAGES =+ "${PN}-python"
-FILES:${PN}-python = "${nonarch_libdir}/python*/site-packages/*"
+FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
 RDEPENDS:${PN}-python = "python3"
 
 FILES:${PN}-staticdev += "${libdir}/kea/hooks/*.a ${libdir}/hooks/*.a"
