about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/lxml/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/lxml/__init__.py')
-rw-r--r--.venv/lib/python3.12/site-packages/lxml/__init__.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/lxml/__init__.py b/.venv/lib/python3.12/site-packages/lxml/__init__.py
new file mode 100644
index 00000000..45cee20a
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/lxml/__init__.py
@@ -0,0 +1,22 @@
+# this is a package
+
+__version__ = "5.3.1"
+
+
+def get_include():
+    """
+    Returns a list of header include paths (for lxml itself, libxml2
+    and libxslt) needed to compile C code against lxml if it was built
+    with statically linked libraries.
+    """
+    import os
+    lxml_path = __path__[0]
+    include_path = os.path.join(lxml_path, 'includes')
+    includes = [include_path, lxml_path]
+
+    for name in os.listdir(include_path):
+        path = os.path.join(include_path, name)
+        if os.path.isdir(path):
+            includes.append(path)
+
+    return includes