File disable-vendoring.patch of Package python-simplejpeg

--- a/setup.py.orig	2025-11-01 17:21:48.589320122 +0100
+++ a/setup.py	2025-11-01 17:26:29.252328364 +0100
@@ -85,6 +85,7 @@
 
 def untar_url(url, filename, reference_digest):
     path = filename.rstrip('.tar.gz')
+    return path
     if not pt.exists(filename):
         os.makedirs(pt.dirname(filename), exist_ok=True)
         print('downloading', url)
@@ -216,7 +217,6 @@
         pt.join(JPEG_DIR, 'src'),
         pt.join(PACKAGE_DIR, 'simplejpeg'),
     ]
-    static_libs = [pt.join(_libdir(), _staticlib())]
     cython_files = [pt.join('simplejpeg', '_jpeg.pyx')]
     for cython_file in cython_files:
         if pt.exists(cython_file):
@@ -225,7 +225,7 @@
         pt.join('simplejpeg', '_jpeg.c'),
         pt.join('simplejpeg', '_color.c')
     ]
-    extra_link_args = []
+    extra_link_args = [ '-lturbojpeg' ]
     extra_compile_args = []
     macros = [
         ('NPY_NO_DEPRECATED_API', NPY_API_VERSION),
@@ -246,7 +246,6 @@
         sources,
         language='C',
         include_dirs=include_dirs,
-        extra_objects=static_libs,
         extra_link_args=extra_link_args,
         extra_compile_args=extra_compile_args,
         define_macros=macros,
openSUSE Build Service is sponsored by