BuildRequire python3-setuptools explicitly

See https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools

Without this, the error is:

    Traceback (most recent call last):
      File "/builddir/build/BUILD/MapServer-rel-7-6-2/x86_64-redhat-linux-gnu/mapscript/python/setup.py", line 2, in <module>
        from setuptools import setup, find_packages, Distribution
    ModuleNotFoundError: No module named 'setuptools'
This commit is contained in:
Miro Hrončok 2021-05-10 17:13:56 +02:00
parent 9089840404
commit cb9c3306f7

View File

@ -117,6 +117,7 @@ Provides: %{name}-python%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
Summary: Python/Mapscript map making extensions to Python
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: %{name} = %{version}-%{release}
Requires: python3