Ignore:
Timestamp:
Jun 17, 2018 12:42:56 AM (4 years ago)
Author:
toby
Message:

fix phase fraction with no included phases; repaint after; put TMP dir option into scons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fsource/SConstruct

    r3203 r3436  
    9595FORTflags = ""
    9696LDFLAGS = ''
     97tmpdir = None
    9798#==========================================================================================
    9899# configure platform dependent options here:
     
    115116    print ("Sorry, parameters for platform "+sys.platform+" are not yet defined")
    116117    sys.exit()
     118if ARGUMENTS.get('TMP'):
     119   tmpdir = ARGUMENTS.get('TMP')
    117120if FCompiler == 'gfortran':
    118121    if ARGUMENTS.get('LIBGCC', '').upper().startswith('T'):
     
    185188LDFLAGS='string'   -- string of options to be used for f2py during link step
    186189
     190TMP=<path> --- where <path> is something like /tmp sets builds to be performed
     191   in that directory.
     192
    187193Note that at present, this has been tested with 32-bit python on windows and
    188 Mac & 64 bit on linux. Python 3.x is not supported in GSAS-II yet.
     194Mac & 64 bit on linux. 32-bit builds with anaconda/gfortran in 32-bit Python
     195is not working, at least not when installed in 64-bits Linux/Windows.
    189196
    190197examples:
     
    255262            F2PYflags = '--compiler=mingw32 --fcompiler=gfortran --f77flags="-fno-range-check -m64"'
    256263    elif sys.platform == "win32":
    257         #if FORTflags == "": FORTflags = ' -w -O2 -m32'
     264        # the next line may need to be removed. When compiling with a 32-bit machine?
     265        #if FORTflags == "": FORTflags = ' -w -O2 -m32'
    258266        if F2PYflags == "":
    259267            F2PYflags = '--compiler=mingw32 --fcompiler=gfortran --f77flags="-fno-range-check"'
     
    271279        print ('Error: specify a F2PYflags value')
    272280        sys.exit()
     281if tmpdir:
     282    F2PYflags += " --build-dir " + tmpdir
    273283#==========================================================================================
    274284# Setup build Environment
Note: See TracChangeset for help on using the changeset viewer.