summaryrefslogtreecommitdiff
path: root/packages/python/python-pysqlite/no-host-includes.patch
blob: 20f5c98402cbfda173b23e20a5e763db1f301d7e (plain)
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

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- pysqlite/setup.py~no-host-includes
+++ pysqlite/setup.py
@@ -11,8 +11,8 @@
 macros = []
 
 if sys.platform in ("linux-i386", "linux2"): # most Linux
-    include_dirs = ['/usr/include/sqlite']
-    library_dirs = ['/usr/lib/']
+    include_dirs = []
+    library_dirs = []
     libraries = [sqlite]
     runtime_library_dirs = []
     extra_objects = []
@@ -21,8 +21,8 @@
         LOCALBASE = os.environ.get("LOCALBASE", "/opt/local")
     else:
         LOCALBASE = os.environ.get("LOCALBASE", "/usr/local")
-    include_dirs = ['%s/include' % LOCALBASE]
-    library_dirs = ['%s/lib/' % LOCALBASE]
+    include_dirs = []
+    library_dirs = []
     libraries = [sqlite]
     runtime_library_dirs = []
     extra_objects = []
@@ -33,8 +33,8 @@
     runtime_library_dirs = []
     extra_objects = []
 elif os.name == "posix": # most Unixish platforms
-    include_dirs = ['/usr/local/include']
-    library_dirs = ['/usr/local/lib']
+    include_dirs = []
+    library_dirs = []
     libraries = [sqlite]
     # On some platorms, this can be used to find the shared libraries
     # at runtime, if they are in a non-standard location. Doesn't