File python-lxml-no-schematron.patch of Package python-lxml

Index: lxml-5.4.0/setup.py
===================================================================
--- lxml-5.4.0.orig/setup.py
+++ lxml-5.4.0/setup.py
@@ -96,12 +96,6 @@ extra_options['package_data'] = {
     'lxml.includes': [
         '*.pxd', '*.h'
         ],
-    'lxml.isoschematron':  [
-        'resources/rng/iso-schematron.rng',
-        'resources/xsl/*.xsl',
-        'resources/xsl/iso-schematron-xslt1/*.xsl',
-        'resources/xsl/iso-schematron-xslt1/readme.txt'
-        ],
     }
 
 extra_options['package_dir'] = {
@@ -109,7 +103,7 @@ extra_options['package_dir'] = {
     }
 
 extra_options['packages'] = [
-        'lxml', 'lxml.includes', 'lxml.html', 'lxml.isoschematron'
+        'lxml', 'lxml.includes', 'lxml.html'
     ]
 
 
Index: lxml-5.4.0/src/lxml.egg-info/SOURCES.txt
===================================================================
--- lxml-5.4.0.orig/src/lxml.egg-info/SOURCES.txt
+++ lxml-5.4.0/src/lxml.egg-info/SOURCES.txt
@@ -236,7 +236,6 @@ src/lxml/sax.c
 src/lxml/sax.pxd
 src/lxml/sax.py
 src/lxml/saxparser.pxi
-src/lxml/schematron.pxi
 src/lxml/serializer.pxi
 src/lxml/usedoctest.py
 src/lxml/xinclude.pxi
@@ -461,4 +460,4 @@ src/lxml/tests/c14n-20/world.txt
 src/lxml/tests/include/test_xinclude.xml
 tools/pypistats.py
 tools/xpathgrep.py
-tools/manylinux/build-wheels.sh
\ No newline at end of file
+tools/manylinux/build-wheels.sh
Index: lxml-5.4.0/src/lxml/etree.pyx
===================================================================
--- lxml-5.4.0.orig/src/lxml/etree.pyx
+++ lxml-5.4.0/src/lxml/etree.pyx
@@ -3719,7 +3719,6 @@ cdef class _Validator:
 include "dtd.pxi"        # DTD
 include "relaxng.pxi"    # RelaxNG
 include "xmlschema.pxi"  # XMLSchema
-include "schematron.pxi" # Schematron (requires libxml2 2.6.21+)
 
 ################################################################################
 # Public C API
openSUSE Build Service is sponsored by