Changeset 5379 for trunk/fsource/SConstruct
- Timestamp:
- Nov 19, 2022 5:59:24 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fsource/SConstruct
r5378 r5379 374 374 #exe = os.path.splitext(str(source[0]))[0] + EXEsuffix 375 375 exe = target 376 # cmd = FCompiler + ' $SOURCE ' + NISTlib[0] + ' -o ' + exe 377 cmd = FCompiler + ' $SOURCE ' + NISTlib[0] + ' -o $TARGET ;env' 376 cmd = os.path.join(FORTpath,FCompiler) + ' $SOURCE ' + NISTlib[0] + ' -o $TARGET' 378 377 if sys.platform == "win32": 379 378 installcmd = "copy $TARGET " + InstallLoc … … 454 453 print("Setting environment variables:") 455 454 # Setup build Environment 456 # add compiler, f2py & python to path457 #if pythonpath != "" and pythonpath != F2PYpath: env.PrependENVPath('PATH', pythonpath)455 # add compiler, f2py & python locations to path 456 if pythonpath != "" and pythonpath != F2PYpath: env.PrependENVPath('PATH', pythonpath) 458 457 if F2PYpath != "": env.PrependENVPath('PATH', F2PYpath) 459 458 if FORTpath != "": env.PrependENVPath('PATH', FORTpath) … … 475 474 if not GetOption('no_exec'): 476 475 fp = open(os.path.join(InstallLoc,'Build.notes.txt'),'w') 477 fp.write('Created {} on {}\n'.format(datetime.datetime.isoformat(datetime.datetime.now()), 478 platform.node())) 476 user = '?' 477 if 'USER' in os.environ: 478 user = os.environ.get('USER','?') 479 elif 'USERNAME' in os.environ: 480 user = os.environ.get('USERNAME','?') 481 fp.write('Created {} on {} by user "{}"\n\n'.format(datetime.datetime.isoformat(datetime.datetime.now()), 482 platform.node(),user)) 483 try: 484 if sys.platform == "win32": 485 fp.write('Platform win32_ver: '+str(platform.win32_ver())+'\n') 486 elif sys.platform == "darwin": 487 fp.write('Platform mac_ver: {0:} on {2:}\n'.format(*platform.mac_ver())) 488 fp.write('Platform uname: '+str(list(platform.uname()))+'\n') 489 except: 490 pass 491 if 'BUILD_TAG' in os.environ: 492 fp.write('BUILD TAG: '+ os.environ['BUILD_TAG'] +'\n') 493 if 'CONDA_PREFIX' in os.environ: 494 fp.write('CONDA_PREFIX: '+ os.environ['CONDA_PREFIX'] +'\n') 495 496 fp.write('\n\tPython: '+platform.python_version()+'\n') 497 try: 498 import numpy 499 fp.write('\tnumpy: '+numpy.__version__+'\n\n') 500 except: 501 pass 479 502 for var in ['FCompiler','FORTpath','FORTflags','F2PYflags','F2PYpath','F2PYsuffix','LDFLAGS']: 480 503 fp.write('\tVariable '+var+' = "'+eval(var)+'"\n')
Note: See TracChangeset
for help on using the changeset viewer.