42
42
from distutils .dist import Distribution
43
43
44
44
import setupext
45
- from setupext import (print_line , print_raw , print_message , print_status ,
46
- download_or_cache )
45
+ from setupext import print_raw , print_status , download_or_cache
47
46
48
47
# Get the version from versioneer
49
48
import versioneer
@@ -176,11 +175,10 @@ def run(self):
176
175
or 'clean' in sys .argv ):
177
176
# Go through all of the packages and figure out which ones we are
178
177
# going to build/install.
179
- print_line ()
178
+ print_raw ()
180
179
print_raw ("Edit setup.cfg to change the build options; "
181
180
"suppress output with --quiet." )
182
181
183
- required_failed = []
184
182
good_packages = []
185
183
for package in mpl_packages :
186
184
if isinstance (package , str ):
@@ -199,18 +197,11 @@ def run(self):
199
197
else :
200
198
print_status (package .name , 'no' )
201
199
if not package .optional :
202
- required_failed . append ( package )
200
+ sys . exit ( "Failed to build %s" % package . name )
203
201
else :
204
202
good_packages .append (package )
205
203
print_raw ('' )
206
204
207
- # Abort if any of the required packages can not be built.
208
- if required_failed :
209
- print_line ()
210
- print_message ("The following required packages can not be built: "
211
- "%s" % ", " .join (x .name for x in required_failed ))
212
- sys .exit (1 )
213
-
214
205
# Now collect all of the information we need to build all of the
215
206
# packages.
216
207
for package in good_packages :
0 commit comments