- Timestamp:
- Jan 7, 2021 9:42:11 PM (2 years ago)
- Location:
- install
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
install/bootstrap.py
r4743 r4745 272 272 273 273 def svncleanup(spath): 274 cmd = [svn, 'cleanup', spath]275 s = subprocess.Popen(cmd,stderr=subprocess.PIPE)276 out,err = MakeByte2str(s.communicate())277 if err:278 print('subversion cleanup returned an error:')279 if out: print(out)280 if err: print(err)281 274 svntmp = os.path.join(spath,'.svn','tmp') 282 275 if not os.path.exists(svntmp): … … 285 278 s = subprocess.Popen(cmd,stderr=subprocess.PIPE) 286 279 out,err = MakeByte2str(s.communicate()) 280 if out: print(out) 281 if err: print(err) 282 cmd = [svn, 'cleanup', spath] 283 s = subprocess.Popen(cmd,stderr=subprocess.PIPE) 284 out,err = MakeByte2str(s.communicate()) 285 if err: 286 print('subversion cleanup returned an error:') 287 287 if out: print(out) 288 288 if err: print(err) … … 497 497 if not skipDownloadSteps: 498 498 # patch: switch GSAS-II location if linked to XOR server (relocated May/June 2017) 499 cmd = [svn, 'info' ]499 cmd = [svn, 'info',path2GSAS2] 500 500 p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 501 501 res,err = p.communicate() … … 503 503 print('Switching previous install with .xor. download location to\n\thttps://subversion.xray.aps.anl.gov/pyGSAS') 504 504 cmd = [svn, 'switch','--relocate','https://subversion.xor.aps.anl.gov/pyGSAS', 505 'https://subversion.xray.aps.anl.gov/pyGSAS' ]505 'https://subversion.xray.aps.anl.gov/pyGSAS',path2GSAS2] 506 506 if proxycmds: cmd += proxycmds 507 507 p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) … … 512 512 print(res) 513 513 # patch: switch GSAS-II location if switched to 2frame version (removed August 2017) 514 if '2frame' in str(res):514 elif '2frame' in str(res): 515 515 print('Switching previous 2frame install to trunk\n\thttps://subversion.xray.aps.anl.gov/pyGSAS') 516 516 cmd = [svn, 'switch',g2home + '/trunk',path2GSAS2, … … 524 524 print(err) 525 525 print(res) 526 elif 'not a working' not in str(res): 527 svncleanup(path2GSAS2) 526 528 527 529 print('\n'+75*'*') -
install/g2complete/src/bootstrap.py
r4743 r4745 272 272 273 273 def svncleanup(spath): 274 cmd = [svn, 'cleanup', spath]275 s = subprocess.Popen(cmd,stderr=subprocess.PIPE)276 out,err = MakeByte2str(s.communicate())277 if err:278 print('subversion cleanup returned an error:')279 if out: print(out)280 if err: print(err)281 274 svntmp = os.path.join(spath,'.svn','tmp') 282 275 if not os.path.exists(svntmp): … … 285 278 s = subprocess.Popen(cmd,stderr=subprocess.PIPE) 286 279 out,err = MakeByte2str(s.communicate()) 280 if out: print(out) 281 if err: print(err) 282 cmd = [svn, 'cleanup', spath] 283 s = subprocess.Popen(cmd,stderr=subprocess.PIPE) 284 out,err = MakeByte2str(s.communicate()) 285 if err: 286 print('subversion cleanup returned an error:') 287 287 if out: print(out) 288 288 if err: print(err) … … 497 497 if not skipDownloadSteps: 498 498 # patch: switch GSAS-II location if linked to XOR server (relocated May/June 2017) 499 cmd = [svn, 'info' ]499 cmd = [svn, 'info',path2GSAS2] 500 500 p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 501 501 res,err = p.communicate() … … 503 503 print('Switching previous install with .xor. download location to\n\thttps://subversion.xray.aps.anl.gov/pyGSAS') 504 504 cmd = [svn, 'switch','--relocate','https://subversion.xor.aps.anl.gov/pyGSAS', 505 'https://subversion.xray.aps.anl.gov/pyGSAS' ]505 'https://subversion.xray.aps.anl.gov/pyGSAS',path2GSAS2] 506 506 if proxycmds: cmd += proxycmds 507 507 p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) … … 512 512 print(res) 513 513 # patch: switch GSAS-II location if switched to 2frame version (removed August 2017) 514 if '2frame' in str(res):514 elif '2frame' in str(res): 515 515 print('Switching previous 2frame install to trunk\n\thttps://subversion.xray.aps.anl.gov/pyGSAS') 516 516 cmd = [svn, 'switch',g2home + '/trunk',path2GSAS2, … … 524 524 print(err) 525 525 print(res) 526 elif 'not a working' not in str(res): 527 svncleanup(path2GSAS2) 526 528 527 529 print('\n'+75*'*') -
install/g2full/g2postinstall.sh
r4740 r4745 10 10 # "install" the GSAS-II package (create shortcuts, byte-compile...) 11 11 # 12 $PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > $PREFIX/GSASII/conda_inst.log 2>&1 12 echo "launching bootstrap process" 13 #$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > $PREFIX/GSASII/conda_inst.log 2>&1 14 $PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet 2> $PREFIX/GSASII/conda_postinst.log 13 15 # Now try to update to latest GSAS-II version (will fail if no network) 14 $PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall >> $PREFIX/GSASII/conda_inst.log 2>&1 16 #$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall >> $PREFIX/GSASII/conda_inst.log 2>&1 17 $PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall 2>> $PREFIX/GSASII/conda_postinst.log 15 18 # 16 19 # create start script … … 26 29 #$PREFIX/bin/python $PREFIX/GSASII/makeMacApp.py 27 30 #$PREFIX/bin/python $PREFIX/GSASII/makeLinux.py 28 echo "GSAS-II bootstrap completed" >> $PREFIX/.messages.txt31 echo "GSAS-II bootstrap completed"
Note: See TracChangeset
for help on using the changeset viewer.