File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -250,13 +250,15 @@ def run(self):
250
250
# tfile.extractall('eigen')
251
251
log .info ("Fetching Eigen..." )
252
252
urlretrieve (EIGEN3_DOWNLOAD_URL , "eigen.zip" )
253
+ except Exception as e :
254
+ raise DistutilsSetupError ("Could not download Eigen from %r: %s" % (EIGEN3_DOWNLOAD_URL , e ))
255
+ try :
253
256
log .info ("Unpacking Eigen..." )
254
- EIGEN3_INCLUDE_DIR = os .path .join (BUILD_DIR , "eigen" )
255
257
os .mkdir (EIGEN3_INCLUDE_DIR )
256
258
with zipfile .ZipFile ("eigen.zip" ) as zfile :
257
259
zfile .extractall (EIGEN3_INCLUDE_DIR )
258
- except :
259
- raise DistutilsSetupError ("Could not download Eigen from %r" % EIGEN3_DOWNLOAD_URL )
260
+ except Exception as e :
261
+ raise DistutilsSetupError ("Could not extract Eigen to %r: %s " % ( EIGEN3_INCLUDE_DIR , e ) )
260
262
261
263
os .environ ["CXX" ] = CXX_PATH
262
264
os .environ ["CC" ] = CC_PATH
@@ -347,7 +349,7 @@ def run(self):
347
349
348
350
try :
349
351
import pypandoc
350
- long_description = pypandoc .convert ("README.md" , "rst" )
352
+ long_description = pypandoc .convert_file ("README.md" , "rst" )
351
353
long_description = "\n " .join (line for line in long_description .splitlines () if "<#" not in line )
352
354
except :
353
355
long_description = ""
You can’t perform that action at this time.
0 commit comments