1
1
mirror of https://github.com/psycopg/psycopg2.git synced 2025-04-12 12:34:12 +03:00
This commit is contained in:
Giorgos Tzampanakis 2025-01-11 04:19:01 +05:00 committed by GitHub
commit c37a6c86a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,6 +72,7 @@ Operating System :: Unix
version_flags = ['dt', 'dec']
PLATFORM_IS_WINDOWS = sys.platform.lower().startswith('win')
PLATFORM_IS_LINUX = sys.platform.lower().startswith('linux')
class PostgresConfig:
@ -366,7 +367,10 @@ For further information please check the 'doc/src/install.rst' file (also at
self.libraries.append("pq")
try:
self.library_dirs.append(pg_config_helper.query("libdir"))
pg_config_libdir = pg_config_helper.query("libdir")
self.library_dirs.append(pg_config_libdir)
if PLATFORM_IS_LINUX:
self.rpath.append(pg_config_libdir)
self.include_dirs.append(pg_config_helper.query("includedir"))
self.include_dirs.append(pg_config_helper.query("includedir-server"))