--- setup.py.orig 2024-02-04 08:22:54.000000000 -0600 +++ setup.py 2024-03-16 05:13:11.000000000 -0500 @@ -21,13 +21,13 @@ ROOT = r'@prefix@' # Thread-enabled libxml2 -with_threads = @WITH_THREADS@ +with_threads = 1 # Features of libxml2 requiring external DLLs -with_iconv = @WITH_ICONV@ -with_zlib = @WITH_ZLIB@ -with_lzma = @WITH_LZMA@ -with_icu = @WITH_ICU@ +with_iconv = 1 +with_zlib = 1 +with_lzma = 1 +with_icu = 1 icu_series = 69 @@ -75,11 +75,7 @@ # - libxml2/libxml/tree.h # - libxslt/xsltconfig.h includes_dir = [ -"/usr/include", -"/usr/local/include", -"/opt/include", os.path.join(ROOT,'include'), -HOME ]; xml_includes="" @@ -131,32 +127,6 @@ result.close() with_xslt=0 -if missing("libxslt-py.c") or missing("libxslt.py"): - if missing("xsltgenerator.py") or missing("libxslt-api.xml"): - print("libxslt stub generator not found, libxslt not built") - else: - try: - import xsltgenerator - except: - print("failed to generate stubs for libxslt, aborting ...") - print(sys.exc_info()[0], sys.exc_info()[1]) - else: - head = open("libxsl.py", "r") - generated = open("libxsltclass.py", "r") - result = open("libxslt.py", "w") - for line in head.readlines(): - if WITHDLLS: - result.write(altImport(line)) - else: - result.write(line) - for line in generated.readlines(): - result.write(line) - head.close() - generated.close() - result.close() - with_xslt=1 -else: - with_xslt=1 if with_xslt == 1: xslt_includes=""