Changeset 3922
- Timestamp:
- Apr 23, 2019 11:49:09 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
install/g2complete/src/bootstrap.py
r3910 r3922 213 213 missing.append(pkg) 214 214 215 if missing :215 if missing and not skipInstallSteps: 216 216 msg = """Sorry, this version of Python cannot be used 217 217 for GSAS-II. It is missing the following package(s): … … 221 221 print("\nPlease install these package(s) and try running this again.") 222 222 print("Showing first error: ") 223 for pkg in ['numpy','scipy','matplotlib','wx', ]:223 for pkg in ['numpy','scipy','matplotlib','wx','OpenGL',]: 224 224 exec('import '+pkg) 225 225 sys.exit() 226 # try:227 # import OpenGL228 # install_with_easyinstall = None229 # except:230 # try:231 # from setuptools.command import easy_install232 # except ImportError:233 # print('You are missing the OpenGL Python package. This can be ')234 # print('installed by this script if the setuptools package is installed')235 # print('Please install either OpenGL (pyopengl) or setuptools')236 # print("package and try running this again.")237 # sys.exit()238 # print("Missing the OpenGL Python package. Will attempt to install this later.")239 # def install_with_easyinstall(package):240 # try:241 # print("trying system-wide ")242 # easy_install.main(['-f',os.path.split(__file__)[0],package])243 # return244 # except:245 # pass246 # try:247 # print("trying user level ")248 # easy_install.main(['-f',os.path.split(__file__)[0],'--user',package])249 # return250 # except:251 # print("\nInstall of "+package+" failed. Error traceback follows:")252 # import traceback253 # print(traceback.format_exc())254 # sys.exit()255 226 256 227 if not skipDownloadSteps:
Note: See TracChangeset
for help on using the changeset viewer.