mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 10:01:20 +00:00
python-psutil: Update to 5.9.5, replace patch
100_add_cross_platform_build_ability.patch was submitted upstream in
https://github.com/giampaolo/psutil/pull/2068, but that pull request was
closed without being merged.
This replaces that patch with a simpler version that only updates
setup.py, leaving the run-time library code unchanged.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 56bac94a03)
This commit is contained in:
committed by
Tianling Shen
parent
e0f59ec277
commit
a640fafc4d
@@ -0,0 +1,29 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -43,16 +43,16 @@ HERE = os.path.abspath(os.path.dirname(_
|
||||
# ...so we can import _common.py and _compat.py
|
||||
sys.path.insert(0, os.path.join(HERE, "psutil"))
|
||||
|
||||
-from _common import AIX # NOQA
|
||||
-from _common import BSD # NOQA
|
||||
-from _common import FREEBSD # NOQA
|
||||
-from _common import LINUX # NOQA
|
||||
-from _common import MACOS # NOQA
|
||||
-from _common import NETBSD # NOQA
|
||||
-from _common import OPENBSD # NOQA
|
||||
-from _common import POSIX # NOQA
|
||||
-from _common import SUNOS # NOQA
|
||||
-from _common import WINDOWS # NOQA
|
||||
+AIX = False
|
||||
+BSD = False
|
||||
+FREEBSD = False
|
||||
+LINUX = True
|
||||
+MACOS = False
|
||||
+NETBSD = False
|
||||
+OPENBSD = False
|
||||
+POSIX = True
|
||||
+SUNOS = False
|
||||
+WINDOWS = False
|
||||
from _common import hilite # NOQA
|
||||
from _compat import PY3 # NOQA
|
||||
from _compat import which # NOQA
|
||||
Reference in New Issue
Block a user