File: insert-doc-build-path.patch

package info (click to toggle)
python-clickhouse-driver 0.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,516 kB
  • sloc: python: 10,950; pascal: 42; makefile: 29; sh: 3
file content (18 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Federico Ceratto <federico@debian.org>
Description: add Python import paths to conf.py
Forwarded: not-needed

--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,6 +16,11 @@
 # import sys
 # sys.path.insert(0, os.path.abspath('.'))
 
+import os, sys
+sys.path.insert(0, os.path.abspath(
+    f"../debian/python3-clickhouse-driver/usr/lib/python{sys.version_info[0]}"
+    f".{sys.version_info[1]}/dist-packages"))
+
 from clickhouse_driver import __version__, VERSION
 
 # -- Project information -----------------------------------------------------