Skip to content

Commit 807933e

Browse files
authored
Support pkg-config libmariadb (#631)
Fix #629.
1 parent 4f2a839 commit 807933e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
def find_package_name():
1616
"""Get available pkg-config package name"""
17-
packages = ["mysqlclient", "mariadb"]
17+
# Ubuntu uses mariadb.pc, but CentOS uses libmariadb.pc
18+
packages = ["mysqlclient", "mariadb", "libmariadb"]
1819
for pkg in packages:
1920
try:
2021
cmd = f"pkg-config --exists {pkg}"
@@ -153,7 +154,7 @@ def get_options():
153154
else:
154155
ext_options = get_config_posix(get_options())
155156

156-
print("# Options for building extention module:")
157+
print("# Options for building extension module:")
157158
for k, v in ext_options.items():
158159
print(f" {k}: {v}")
159160

0 commit comments

Comments
 (0)