diff options
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.5.5.bb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3_3.5.5.bb b/meta/recipes-devtools/python/python3_3.5.5.bb index 4dae4fa4c6..50f63e39c1 100644 --- a/meta/recipes-devtools/python/python3_3.5.5.bb +++ b/meta/recipes-devtools/python/python3_3.5.5.bb | |||
| @@ -4,7 +4,7 @@ DEPENDS = "python3-native libffi bzip2 gdbm openssl sqlite3 zlib virtual/libintl | |||
| 4 | 4 | ||
| 5 | PR = "${INC_PR}.0" | 5 | PR = "${INC_PR}.0" |
| 6 | PYTHON_MAJMIN = "3.5" | 6 | PYTHON_MAJMIN = "3.5" |
| 7 | PYTHON_BINABI= "${PYTHON_MAJMIN}m" | 7 | PYTHON_BINABI = "${PYTHON_MAJMIN}m" |
| 8 | DISTRO_SRC_URI ?= "file://sitecustomize.py" | 8 | DISTRO_SRC_URI ?= "file://sitecustomize.py" |
| 9 | DISTRO_SRC_URI_linuxstdbase = "" | 9 | DISTRO_SRC_URI_linuxstdbase = "" |
| 10 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ | 10 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ |
| @@ -48,7 +48,13 @@ UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar" | |||
| 48 | 48 | ||
| 49 | S = "${WORKDIR}/Python-${PV}" | 49 | S = "${WORKDIR}/Python-${PV}" |
| 50 | 50 | ||
| 51 | inherit autotools multilib_header python3native pkgconfig | 51 | inherit autotools multilib_header python3native pkgconfig update-alternatives |
| 52 | |||
| 53 | MULTILIB_SUFFIX = "${@d.getVar('base_libdir',1).split('/')[-1]}" | ||
| 54 | |||
| 55 | ALTERNATIVE_${PN}-dev = "python-config" | ||
| 56 | ALTERNATIVE_LINK_NAME[python-config] = "${bindir}/python${PYTHON_BINABI}-config" | ||
| 57 | ALTERNATIVE_TARGET[python-config] = "${bindir}/python${PYTHON_BINABI}-config-${MULTILIB_SUFFIX}" | ||
| 52 | 58 | ||
| 53 | CONFIGUREOPTS += " --with-system-ffi " | 59 | CONFIGUREOPTS += " --with-system-ffi " |
| 54 | 60 | ||
| @@ -207,6 +213,8 @@ py_package_preprocess () { | |||
| 207 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ | 213 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ |
| 208 | -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=2)" | 214 | -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=2)" |
| 209 | cd - | 215 | cd - |
| 216 | |||
| 217 | mv ${PKGD}/${bindir}/python3.5m-config ${PKGD}/${bindir}/python3.5m-config-${MULTILIB_SUFFIX} | ||
| 210 | } | 218 | } |
| 211 | 219 | ||
| 212 | # manual dependency additions | 220 | # manual dependency additions |
