Skip to content

Commit

Permalink
Support pkg-config libmariadb (#631)
Browse files Browse the repository at this point in the history
Fix #629.
  • Loading branch information
methane committed Jun 29, 2023
1 parent 4f2a839 commit 807933e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

def find_package_name():
"""Get available pkg-config package name"""
packages = ["mysqlclient", "mariadb"]
# Ubuntu uses mariadb.pc, but CentOS uses libmariadb.pc
packages = ["mysqlclient", "mariadb", "libmariadb"]
for pkg in packages:
try:
cmd = f"pkg-config --exists {pkg}"
Expand Down Expand Up @@ -153,7 +154,7 @@ def get_options():
else:
ext_options = get_config_posix(get_options())

print("# Options for building extention module:")
print("# Options for building extension module:")
for k, v in ext_options.items():
print(f" {k}: {v}")

Expand Down

0 comments on commit 807933e

Please sign in to comment.