aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch
blob: 6b72ef7c42a797131a058cc331bab5f564f8ecac (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
Upstream-status: Inappropriate [embedded specific]

The package uses the pg_config command to detect the libdir and includedir path.
Commented the lines because the command is not available at buildtime and the
package succesfully build without them.

Index: psycopg2-2.5/setup.py
===================================================================
--- psycopg2-2.5.orig/setup.py
+++ psycopg2-2.5/setup.py
@@ -377,9 +377,6 @@
             self.libraries.append("pq")
 
         try:
-            self.library_dirs.append(pg_config_helper.query("libdir"))
-            self.include_dirs.append(pg_config_helper.query("includedir"))
-            self.include_dirs.append(pg_config_helper.query("includedir-server"))
             try:
                 # Here we take a conservative approach: we suppose that
                 # *at least* PostgreSQL 7.4 is available (this is the only
Index: psycopg2-2.5/setup.cfg
===================================================================
--- psycopg2-2.5.orig/setup.cfg
+++ psycopg2-2.5/setup.cfg
@@ -11,7 +11,7 @@
 # build psycopg2. If pg_config is not in the path or is installed under a
 # different name uncomment the following option and set it to the pg_config
 # full path.
-#pg_config=
+pg_config="/bin/true"
 
 # Set to 1 to use Python datetime objects for default date/time representation.
 use_pydatetime=1