@@ -141,8 +141,10 @@ def pretty_log_dists(dists, log_func=info):
141141 for dist in dists :
142142 infos .append ('{Fore.GREEN}{Style.BRIGHT}{name}{Style.RESET_ALL}: '
143143 'includes recipes ({Fore.GREEN}{recipes}'
144- '{Style.RESET_ALL})' .format (
144+ '{Style.RESET_ALL}), built for archs ({Fore.BLUE}'
145+ '{archs}{Style.RESET_ALL})' .format (
145146 name = dist .name , recipes = ', ' .join (dist .recipes ),
147+ archs = ', ' .join (dist .archs ) if dist .archs else 'UNKNOWN' ,
146148 Fore = Err_Fore , Style = Err_Style ))
147149
148150 for line in infos :
@@ -1155,6 +1157,9 @@ class Distribution(object):
11551157 url = None
11561158 dist_dir = None # Where the dist dir ultimately is. Should not be None.
11571159
1160+ archs = []
1161+ '''The arch targets that the dist is built for.'''
1162+
11581163 recipes = []
11591164
11601165 description = '' # A long description
@@ -1316,6 +1321,8 @@ def get_distributions(cls, ctx, extra_dist_dirs=[]):
13161321 dist .dist_dir = folder
13171322 dist .needs_build = False
13181323 dist .recipes = dist_info ['recipes' ]
1324+ if 'archs' in dist_info :
1325+ dist .archs = dist_info ['archs' ]
13191326 dists .append (dist )
13201327 return dists
13211328
@@ -1327,6 +1334,7 @@ def save_info(self):
13271334 info ('Saving distribution info' )
13281335 with open ('dist_info.json' , 'w' ) as fileh :
13291336 json .dump ({'dist_name' : self .name ,
1337+ 'archs' : [arch .arch for arch in self .ctx .archs ],
13301338 'recipes' : self .ctx .recipe_build_order },
13311339 fileh )
13321340
0 commit comments