mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-26 11:22:05 +08:00
try mariadb_config when mysql_config is not found (#374)
This commit is contained in:
@ -37,6 +37,16 @@ def get_config():
|
||||
|
||||
if 'mysql_config' in options:
|
||||
_mysql_config_path = options['mysql_config']
|
||||
else:
|
||||
try:
|
||||
mysql_config('version')
|
||||
except EnvironmentError:
|
||||
# try mariadb_config
|
||||
_mysql_config_path = "mariadb_config"
|
||||
try:
|
||||
mysql_config('version')
|
||||
except EnvironmentError:
|
||||
_mysql_config_path = "mysql_config"
|
||||
|
||||
extra_objects = []
|
||||
static = enabled(options, 'static')
|
||||
|
Reference in New Issue
Block a user