File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -455,9 +455,10 @@ def checkOptionalModules(env):
455455 env ['warnings' ].append ("Cannot import sympy. Symbolic toolbox and nonlinear PDEs will not be available." )
456456 env .Append (CPPDEFINES = ['ESYS_NO_SYMPY' ])
457457 else :
458- if env ['pythoncmd' ] is not None :
459- env = get_external_python_sympy (env , env ['pythoncmd' ])
460- else :
458+ # if env['pythoncmd'] is not None:
459+ # env=get_external_python_sympy(env, env['pythoncmd'])
460+ # else:
461+ try :
461462 import sympy as sp
462463 import distutils .version as duv
463464 spVer = sp .__version__
@@ -492,6 +493,9 @@ def checkOptionalModules(env):
492493 else :
493494 env ['sympy' ]= True
494495 env ['warnings' ].append ("Found sympy version %s" % spVer )
496+ except :
497+ env ['sympy' ]= False
498+ env ['warnings' ].append ("Could not find sympy" )
495499
496500 ######## gmshpy
497501 env ['gmshpy' ] = detectModule (env , 'gmshpy' )
You can’t perform that action at this time.
0 commit comments