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 @@ class psycopg_build_ext(build_ext): 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