1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
From: =?utf-8?q?Karsten_Sch=C3=B6ke?= <karsten.schoeke@geobasis-bb.de>
Date: Sun, 8 Mar 2026 15:50:08 +0100
Subject: setup.py: Adjust the library folders to use
The lexbor and modest lib directories are located elsewhere in Debian
and must be activated separately.
Forwarded: not-needed
Last-Update: 2026-01-02
--- python-selectolax-0.4.6.orig/setup.py
+++ python-selectolax-0.4.6/setup.py
@@ -118,12 +118,12 @@ def make_extensions():
if INCLUDE_MODEST:
extra_objects = ["modest/lib/libmodest_static.a"]
if INCLUDE_LEXBOR:
- extra_objects_lxb = ["lexbor/liblexbor_static.a"]
+ extra_objects_lxb = ["-l: liblexbor_static.a"]
else:
if INCLUDE_MODEST:
files_to_compile.extend(find_modest_files("modest/source"))
if INCLUDE_LEXBOR:
- files_to_compile_lxb.extend(find_modest_files("lexbor/source"))
+ files_to_compile_lxb.extend(find_modest_files("/usr/include/lexbor"))
compile_arguments_lxb = [
"-DLEXBOR_STATIC",
@@ -162,6 +162,7 @@ def make_extensions():
"selectolax.parser",
files_to_compile,
language="c",
+ libraries=["modest"],
include_dirs=[
"modest/include/",
],
@@ -176,6 +177,7 @@ def make_extensions():
"selectolax.lexbor",
files_to_compile_lxb,
language="c",
+ libraries=["lexbor"],
include_dirs=[
"lexbor/source/",
],
|