From 9334e9c0891260e5221196f0cfd46968dbc1c6b9b171757a3e4164c1e321e5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 15 Nov 2019 08:58:26 +0000 Subject: [PATCH] fix name of patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=187 --- imporlib.patch => importlib.patch | 6 +++--- python-setuptools.spec | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename imporlib.patch => importlib.patch (85%) diff --git a/imporlib.patch b/importlib.patch similarity index 85% rename from imporlib.patch rename to importlib.patch index 0264fa3..00455bb 100644 --- a/imporlib.patch +++ b/importlib.patch @@ -8,7 +8,7 @@ Index: setuptools-41.6.0/setuptools/_imp.py """Just like 'imp.find_module()', but with package support""" - spec = importlib.util.find_spec(module, paths) + if isinstance(paths, list): -+ spec = importlib.machinery.PathFinder().find_spec(module, paths) ++ spec = importlib.machinery.PathFinder.find_spec(module, paths) + else: + spec = importlib.util.find_spec(module, paths) if spec is None: @@ -20,7 +20,7 @@ Index: setuptools-41.6.0/setuptools/_imp.py def get_frozen_object(module, paths=None): - spec = importlib.util.find_spec(module, paths) + if isinstance(paths, list): -+ spec = importlib.machinery.PathFinder().find_spec(module, paths) ++ spec = importlib.machinery.PathFinder.find_spec(module, paths) + else: + spec = importlib.util.find_spec(module, paths) if not spec: @@ -31,7 +31,7 @@ Index: setuptools-41.6.0/setuptools/_imp.py def get_module(module, paths, info): - spec = importlib.util.find_spec(module, paths) + if isinstance(paths, list): -+ spec = importlib.machinery.PathFinder().find_spec(module, paths) ++ spec = importlib.machinery.PathFinder.find_spec(module, paths) + else: + spec = importlib.util.find_spec(module, paths) if not spec: diff --git a/python-setuptools.spec b/python-setuptools.spec index 6bde333..c7b895f 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -36,7 +36,7 @@ Source: https://files.pythonhosted.org/packages/source/s/setuptools/setu Source1: psfl.txt Source2: zpl.txt Patch0: sort-for-reproducibility.patch -Patch1: imporlib.patch +Patch1: importlib.patch BuildRequires: %{python_module appdirs} BuildRequires: %{python_module ordered-set} BuildRequires: %{python_module packaging}