diff options
author | Ricardo Silva <rjpdasilva@gmail.com> | 2018-01-04 15:35:20 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-01-16 21:37:33 -0800 |
commit | a5c7c4746ee6f12f925039ef88a73737e30942b8 (patch) | |
tree | 5306231203df760e0b4b0238dd8d3277e7cacdc2 /meta-python/recipes-devtools/python/python-pyinotify.inc | |
parent | 4230f564853b9033017a0fad22beef0eac5d1c9a (diff) | |
download | meta-openembedded-a5c7c4746ee6f12f925039ef88a73737e30942b8.tar.gz |
pyinotify: Fix support for different python versions
The runtime dependencies for pyinotify are defined in
python-pyinotify.inc file, which gets included from both the python2 and
the python3 recipes for pyinotify.
Since the include file is used for both python2 and python3 recipes, it
must use the '${PYTHON_PN}-' prefix instead of just 'python-' for
listing the dependencies in RDEPENDS, otherwise it is forcing python2
modules to be selected from a python3 recipe, so fix that.
For example, use '${PYTHON_PN}-threading' instead of 'python-threading'
for specifying a dependency from the 'threading' module.
While at it, also use line separation and indentation on RDEPENDS for
better readability.
Signed-off-by: Ricardo Silva <rjpdasilva@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-pyinotify.inc')
-rw-r--r-- | meta-python/recipes-devtools/python/python-pyinotify.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-pyinotify.inc b/meta-python/recipes-devtools/python/python-pyinotify.inc index 0168f1a870..7fcbb1850f 100644 --- a/meta-python/recipes-devtools/python/python-pyinotify.inc +++ b/meta-python/recipes-devtools/python/python-pyinotify.inc | |||
@@ -2,7 +2,13 @@ DESCRIPTION = "Python pyinotify: Linux filesystem events monitoring" | |||
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=ab173cade7965b411528464589a08382" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=ab173cade7965b411528464589a08382" |
4 | 4 | ||
5 | RDEPENDS_${PN} += "python-threading python-io python-subprocess python-misc python-shell" | 5 | RDEPENDS_${PN} += "\ |
6 | ${PYTHON_PN}-threading \ | ||
7 | ${PYTHON_PN}-io \ | ||
8 | ${PYTHON_PN}-subprocess \ | ||
9 | ${PYTHON_PN}-misc \ | ||
10 | ${PYTHON_PN}-shell \ | ||
11 | " | ||
6 | 12 | ||
7 | SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406" | 13 | SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406" |
8 | SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4" | 14 | SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4" |