diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2024-03-18 14:40:35 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2024-03-27 12:36:58 -0400 |
commit | 283a773f24cedacb45def943a455bc3607f8a7a1 (patch) | |
tree | c5fb62ed7058549f7d196dbe99eab2027a44b3a6 /dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb | |
parent | 2f89aa7e416878a61c5b5fdfd1bc361a28ce8853 (diff) | |
download | meta-security-283a773f24cedacb45def943a455bc3607f8a7a1.tar.gz |
python3-pyinotify: Make asyncore support optional for Python 3
Simple fix for Python 3.12 since it dropped asyncore. Catches the import
error instead of using a version check so that the user can install the
compatibility package for any uses that can't be upgraded to asyncio or
similar immediately.
Fixes:
# python3
Python 3.12.1 (main, Dec 7 2023, 20:45:44) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyinotify
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.12/site-packages/pyinotify.py", line 71, in <module>
import asyncore
ModuleNotFoundError: No module named 'asyncore'
>>>
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb')
-rw-r--r-- | dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb index 9acdf54..ff1b611 100644 --- a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb +++ b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb | |||
@@ -15,4 +15,8 @@ RDEPENDS:${PN} += "\ | |||
15 | SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406" | 15 | SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406" |
16 | SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4" | 16 | SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4" |
17 | 17 | ||
18 | SRC_URI += " \ | ||
19 | file://0001-Make-asyncore-support-optional-for-Python-3.patch \ | ||
20 | " | ||
21 | |||
18 | inherit pypi setuptools3 | 22 | inherit pypi setuptools3 |