diff --git a/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb b/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb
index 80c39f6c2c..b0c6f9f10e 100644
--- a/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb
+++ b/meta-python/recipes-devtools/python/python3-canopen_2.4.1.bb
@@ -5,7 +5,12 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=97f135a6ee6f800c377b5512122c7a8d"

 SRC_URI[sha256sum] = "20a84bc498b34dadd79cece467d3bbe19591c1c02a8f39331bcc6065c4d8b2eb"

-inherit setuptools3 pypi
+DEPENDS += "python3-setuptools-scm-native"
+
+inherit python_setuptools_build_meta pypi
+
+# The sdist has no git metadata for setuptools_scm to look at.
+export SETUPTOOLS_SCM_PRETEND_VERSION = "${PV}"

 RDEPENDS:${PN} += "\
   python3-can \
