mirror of
https://github.com/python/cpython.git
synced 2025-08-26 19:55:24 +00:00
Fix compiling error when missing gdbm version macros (GH-7823)
This commit is contained in:
parent
16eb3bcdb2
commit
b248e957a8
3 changed files with 7 additions and 5 deletions
|
@ -527,11 +527,11 @@ def collect_cc(info_add):
|
|||
|
||||
def collect_gdbm(info_add):
|
||||
try:
|
||||
import _gdbm
|
||||
from _gdbm import _GDBM_VERSION
|
||||
except ImportError:
|
||||
return
|
||||
|
||||
info_add('gdbm.GDBM_VERSION', '.'.join(map(str, _gdbm._GDBM_VERSION)))
|
||||
info_add('gdbm.GDBM_VERSION', '.'.join(map(str, _GDBM_VERSION)))
|
||||
|
||||
|
||||
def collect_info(info):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue