Changeset 4736 for install/bootstrap.py


Ignore:
Timestamp:
Jan 7, 2021 3:53:49 PM (10 months ago)
Author:
toby
Message:

more install work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install/bootstrap.py

    r4732 r4736  
    1111skipInstallChecks = False  # if set to True, continue installation even if current Python lacks packages and
    1212                           # skips platform-dependent installation steps
     13                           #--> True: -noinstall or -binary=
    1314skipDownloadSteps = False  # if False, svn is used to download GSAS-II files and binaries
     15                           #--> True: -nonet
    1416skipProxy = False          # if False then the script creates a prompt asking for proxy info
     17                           #--> True: -nonet or -noproxy or -binary=
    1518showWXerror = False        # if True, errors are shown in wxPython windows (used on Windows only)
     19                           #--> True: -noinstall or -binary= (both on windows)
    1620help = False               # if True, a help message is shown
     21                           #--> True: -help
    1722allBinaries = False        # if True, causes all binaries to be installed
    18 binaryVersion=None         # if specified, gives a specific numpy version to use (such as 1.18)
     23                           #--> True: -allbinaries or -server
     24numpyVersion=None          # if specified, gives a specific numpy version to use (such as 1.18)
    1925                           # for selecting a set of binaries to use
    20 numpyVersion=None
     26                           #--> Set by: -binary=
    2127
    2228for a in sys.argv[1:]:
     
    581587elif numpyVersion:
    582588    binaryVersion = GSASIIpath.GetBinaryPrefix()+'_n'+numpyVersion
     589    print('Load binaries from '+binaryVersion)
    583590    if not GSASIIpath.svnSwitchDir('bindist','',g2home+ 'Binaries/'+binaryVersion,None,True):
    584591        msg = 'Binary load failed with '+binaryVersion+'. Subversion problem? Please seek help'
    585592        BailOut(msg)
    586593else:
     594    print('Load binaries matching current python/numpy')
    587595    GSASIIpath.DownloadG2Binaries(g2home)
    588596       
     
    649657            exec(source_file.read())
    650658
     659#===========================================================================
     660# on Windows, make a batch file with Python and GSAS-II location hard-coded
    651661if skipInstallChecks:
    652662    pass
    653 #===========================================================================
    654 # on Windows, make a batch file with Python and GSAS-II location hard-coded
    655663elif sys.platform.startswith('win') and os.path.exists(
    656664    os.path.join(path2GSAS2,"makeBat.py")):
     
    659667# on a Mac, make an applescript
    660668elif sys.platform.startswith('darwin') and os.path.exists(
    661     os.path.join(path2GSAS2,"makeMacApp.py")):
     669         os.path.join(path2GSAS2,"makeMacApp.py")):
    662670    sys.argv = [os.path.join(path2GSAS2,"makeMacApp.py")]
    663671    print(u'running '+sys.argv[0])
     
    666674# On linux, make desktop icon
    667675elif sys.platform.startswith('linux') and os.path.exists(
    668     os.path.join(path2GSAS2,"makeLinux.py")):
     676         os.path.join(path2GSAS2,"makeLinux.py")):
    669677    sys.argv = [os.path.join(path2GSAS2,"makeLinux.py")]
    670678    print(u'running '+sys.argv[0])
Note: See TracChangeset for help on using the changeset viewer.