@@ -590,6 +590,15 @@ def get_frame(level=0):
590590 frame = frame .f_back
591591 return frame
592592
593+ class SconsInfo (object ):
594+ def __init__ (self , scons_path , parent_name , pre_hook ,
595+ post_hook , source_files ):
596+ self .scons_path = scons_path
597+ self .parent_name = parent_name
598+ self .pre_hook = pre_hook
599+ self .post_hook = post_hook
600+ self .source_files = source_files
601+
593602######################
594603
595604class Configuration (object ):
@@ -1542,23 +1551,18 @@ def add_sconscript(self, sconscript, subpackage_path=None,
15421551 if source_files :
15431552 full_source_files .extend ([self .paths (i )[0 ] for i in source_files ])
15441553
1554+ scons_info = SconsInfo (fullsconsname , parent_name ,
1555+ pre_hook , post_hook ,
1556+ full_source_files )
15451557 if dist is not None :
1546- dist .scons_data .append ((fullsconsname ,
1547- pre_hook ,
1548- post_hook ,
1549- full_source_files ,
1550- parent_name ))
1558+ dist .scons_data .append (scons_info )
15511559 self .warn ('distutils distribution has been initialized,' \
15521560 ' it may be too late to add a subpackage ' + subpackage_name )
15531561 # XXX: we add a fake extension, to correctly initialize some
15541562 # options in distutils command.
15551563 dist .add_extension ('' , sources = [])
15561564 else :
1557- self .scons_data .append ((fullsconsname ,
1558- pre_hook ,
1559- post_hook ,
1560- full_source_files ,
1561- parent_name ))
1565+ self .scons_data .append (scons_info )
15621566 # XXX: we add a fake extension, to correctly initialize some
15631567 # options in distutils command.
15641568 self .add_extension ('' , sources = [])
0 commit comments