@@ -141,8 +141,10 @@ def pretty_log_dists(dists, log_func=info):
141
141
for dist in dists :
142
142
infos .append ('{Fore.GREEN}{Style.BRIGHT}{name}{Style.RESET_ALL}: '
143
143
'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 (
145
146
name = dist .name , recipes = ', ' .join (dist .recipes ),
147
+ archs = ', ' .join (dist .archs ) if dist .archs else 'UNKNOWN' ,
146
148
Fore = Err_Fore , Style = Err_Style ))
147
149
148
150
for line in infos :
@@ -1155,6 +1157,9 @@ class Distribution(object):
1155
1157
url = None
1156
1158
dist_dir = None # Where the dist dir ultimately is. Should not be None.
1157
1159
1160
+ archs = []
1161
+ '''The arch targets that the dist is built for.'''
1162
+
1158
1163
recipes = []
1159
1164
1160
1165
description = '' # A long description
@@ -1316,6 +1321,8 @@ def get_distributions(cls, ctx, extra_dist_dirs=[]):
1316
1321
dist .dist_dir = folder
1317
1322
dist .needs_build = False
1318
1323
dist .recipes = dist_info ['recipes' ]
1324
+ if 'archs' in dist_info :
1325
+ dist .archs = dist_info ['archs' ]
1319
1326
dists .append (dist )
1320
1327
return dists
1321
1328
@@ -1327,6 +1334,7 @@ def save_info(self):
1327
1334
info ('Saving distribution info' )
1328
1335
with open ('dist_info.json' , 'w' ) as fileh :
1329
1336
json .dump ({'dist_name' : self .name ,
1337
+ 'archs' : [arch .arch for arch in self .ctx .archs ],
1330
1338
'recipes' : self .ctx .recipe_build_order },
1331
1339
fileh )
1332
1340
0 commit comments