File setup.py of Package failed_python-exiv2

from setuptools import setup, find_packages

# Minimal pure-Python setup to avoid building the C++ extension during this RPM build.
# The original project contains a C++ extension (exiv2 wrapper) which fails to build
# against the newer Exiv2 headers present in the build environment. To allow packaging
# (for builders that do not require the native extension), we provide a lightweight
# setup that installs the Python parts only and avoids invoking any native build steps.
#
# This is the smallest practical change to get the RPM build past the extension compile
# step. If you need the native extension, the correct fix is to update the C++ sources
# to the current Exiv2 API (or pin an older exiv2-devel dependency).

setup(
    name="py3exiv2",
    version="0.11.0",
    description="Python bindings for Exiv2 (pure-Python packaging fallback)",
    packages=find_packages("src") or find_packages(),
    package_dir={"": "src"},
    include_package_data=True,
    zip_safe=False,
)
openSUSE Build Service is sponsored by