Skip to content

Commit 8e9d759

Browse files
authored
try mariadb_config when mysql_config is not found (#374)
1 parent b3e775a commit 8e9d759

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

setup_posix.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ def get_config():
3737

3838
if 'mysql_config' in options:
3939
_mysql_config_path = options['mysql_config']
40+
else:
41+
try:
42+
mysql_config('version')
43+
except EnvironmentError:
44+
# try mariadb_config
45+
_mysql_config_path = "mariadb_config"
46+
try:
47+
mysql_config('version')
48+
except EnvironmentError:
49+
_mysql_config_path = "mysql_config"
4050

4151
extra_objects = []
4252
static = enabled(options, 'static')

0 commit comments

Comments
 (0)