mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
menulibre: fix do_install failed
Use pip 25.3 to install failed
...
Traceback (most recent call last):
File "menulibre-2.4.0/setup.py", line 245, in <module>
DistUtilsExtra.auto.setup(
~~~~~~~~~~~~~~~~~~~~~~~~~^
name='menulibre',
^^^^^^^^^^^^^^^^^
...<12 lines>...
cmdclass={'install': InstallAndUpdateDataDirectory}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 98, in setup
__requires(attrs, src_all)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 471, in __requires
__add_imports(imports, s, attrs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 405, in __add_imports
if alias.name and __external_mod(cur_module, alias.name, attrs):
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 377, in __external_mod
return 'dist-packages' in mod.__file__ or 'site-packages' in mod.__file__ or \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
...
Refer [1] to correct one line in setup.py
[1] 81be63961a
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
3b5492f57f
commit
f6506e8a65
@ -0,0 +1,59 @@
|
||||
From 671fba096962a24c9dd71b5c995399984ec2ef60 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Mon, 12 Jan 2026 15:01:00 +0800
|
||||
Subject: [PATCH] setup.py: fix install failed
|
||||
|
||||
Use pip 25.3 to install failed
|
||||
...
|
||||
Traceback (most recent call last):
|
||||
File "menulibre-2.4.0/setup.py", line 245, in <module>
|
||||
DistUtilsExtra.auto.setup(
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~^
|
||||
name='menulibre',
|
||||
^^^^^^^^^^^^^^^^^
|
||||
...<12 lines>...
|
||||
cmdclass={'install': InstallAndUpdateDataDirectory}
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
)
|
||||
^
|
||||
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 98, in setup
|
||||
__requires(attrs, src_all)
|
||||
~~~~~~~~~~^^^^^^^^^^^^^^^^
|
||||
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 471, in __requires
|
||||
__add_imports(imports, s, attrs)
|
||||
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
|
||||
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 405, in __add_imports
|
||||
if alias.name and __external_mod(cur_module, alias.name, attrs):
|
||||
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 377, in __external_mod
|
||||
return 'dist-packages' in mod.__file__ or 'site-packages' in mod.__file__ or \
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
TypeError: argument of type 'NoneType' is not iterable
|
||||
...
|
||||
|
||||
Refer [1] to correct one line in setup.py
|
||||
|
||||
[1] https://github.com/epoptes/epoptes/commit/81be63961a428728601df6f442490638df3bd263
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/bluesabre/menulibre/pull/233]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
setup.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 4aec9fd..649f5f7 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -248,6 +248,7 @@ DistUtilsExtra.auto.setup(
|
||||
license='GPL-3',
|
||||
author='Sean Davis',
|
||||
author_email='sean@bluesabre.org',
|
||||
+ requires='',
|
||||
description='advanced menu editor with support for Unity actions',
|
||||
long_description='An advanced menu editor that provides modern features '
|
||||
'and full Unity action support. Suitable for lightweight '
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@ -12,7 +12,9 @@ DEPENDS = " \
|
||||
inherit setuptools3_legacy gtk-icon-cache features_check
|
||||
REQUIRED_DISTRO_FEATURES = "x11 gobject-introspection-data"
|
||||
|
||||
SRC_URI = "https://github.com/bluesabre/${BPN}/releases/download/${BP}/${BP}.tar.gz"
|
||||
SRC_URI = "https://github.com/bluesabre/${BPN}/releases/download/${BP}/${BP}.tar.gz \
|
||||
file://0001-setup.py-fix-install-failed.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "d906acf9cc13b0e15b8e342ae9aab8b0680db336a382d0c42f5d5f465f593c9f"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://github.com/bluesabre/menulibre/releases"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user