File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,26 @@ def collect_zlib(info_add):
345
345
copy_attributes (info_add , zlib , 'zlib.%s' , attributes )
346
346
347
347
348
+ def collect_expat (info_add ):
349
+ try :
350
+ from xml .parsers import expat
351
+ except ImportError :
352
+ return
353
+
354
+ attributes = ('EXPAT_VERSION' ,)
355
+ copy_attributes (info_add , expat , 'expat.%s' , attributes )
356
+
357
+
358
+ def collect_decimal (info_add ):
359
+ try :
360
+ import _decimal
361
+ except ImportError :
362
+ return
363
+
364
+ attributes = ('__libmpdec_version__' ,)
365
+ copy_attributes (info_add , _decimal , '_decimal.%s' , attributes )
366
+
367
+
348
368
def collect_info (info ):
349
369
error = False
350
370
info_add = info .add
@@ -365,6 +385,8 @@ def collect_info(info):
365
385
collect_time ,
366
386
collect_tkinter ,
367
387
collect_zlib ,
388
+ collect_expat ,
389
+ collect_decimal ,
368
390
):
369
391
try :
370
392
collect_func (info_add )
You can’t perform that action at this time.
0 commit comments