Changeset 2410 for install/g2pkg/src
- Timestamp:
- Aug 7, 2016 5:12:26 PM (7 years ago)
- Location:
- install/g2pkg/src
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
install/g2pkg/src/bootstrap.py
r2345 r2410 6 6 home = 'https://subversion.xray.aps.anl.gov/pyGSAS/' 7 7 print 70*'*' 8 print 'Preload matplotlib to build fonts...' 8 #testing for incorrect locale code' 9 try: 10 import locale 11 locale.getdefaultlocale() 12 except ValueError: 13 print 'Your location is not set properly. This causes problems for matplotlib' 14 print ' (see https://github.com/matplotlib/matplotlib/issues/5420.)' 15 print 'Will try to bypass problem by setting LC_ALL to en_US.UTF-8 (US English)' 16 os.environ['LC_ALL'] = 'en_US.UTF-8' 17 locale.getdefaultlocale() 18 print 'Preloading matplotlib to build fonts...' 9 19 try: 10 20 import matplotlib … … 13 23 print 'Checking python packages...', 14 24 missing = [] 15 for pkg in ['numpy','scipy','matplotlib','wx', 'OpenGL']:25 for pkg in ['numpy','scipy','matplotlib','wx',]: 16 26 try: 17 27 exec('import '+pkg) … … 28 38 print "specially configured version of the free Anaconda python package." 29 39 print "Please contact Brian Toby (toby@anl.gov)" 40 for pkg in ['numpy','scipy','matplotlib','wx',]: 41 exec('import '+pkg) 30 42 sys.exit() 43 try: 44 import OpenGL 45 except: 46 print "Missing the OpenGL Python package." 47 print "This should not happen as this script should be called with a " 48 print "specially configured version of the free Anaconda python package," 49 print "but GSAS-II can install this package anyway." 50 print "Please contact Brian Toby (toby@anl.gov) to report this problem." 31 51 32 52 # path to where this script is located
Note: See TracChangeset
for help on using the changeset viewer.