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