diff --git a/recipes-devtools/python/python3_%.bbappend b/recipes-devtools/python/python3_%.bbappend new file mode 100644 index 0000000..54ea791 --- /dev/null +++ b/recipes-devtools/python/python3_%.bbappend @@ -0,0 +1,8 @@ +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "80" +ALTERNATIVE_${PN}-core = "python python_config" +ALTERNATIVE_LINK_NAME[python] = "${bindir}/python" +ALTERNATIVE_LINK_NAME[python_config] = "${bindir}/python-config" +ALTERNATIVE_TARGET[python] = "${bindir}/python3" +ALTERNATIVE_TARGET[python_config] = "${bindir}/python3-config" diff --git a/recipes-devtools/python/python_%.bbappend b/recipes-devtools/python/python_%.bbappend index 5248cd7..a737a61 100644 --- a/recipes-devtools/python/python_%.bbappend +++ b/recipes-devtools/python/python_%.bbappend @@ -1,3 +1,10 @@ EXTRA_OECONF += "\ --enable-ipv6 \ " + +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "100" +ALTERNATIVE_${PN}-core = "python python_config" +ALTERNATIVE_LINK_NAME[python] = "${bindir}/python" +ALTERNATIVE_LINK_NAME[python_config] = "${bindir}/python-config"