Changeset 3922


Ignore:
Timestamp:
Apr 23, 2019 11:49:09 AM (5 years ago)
Author:
toby
Message:

more debugging of OSX packaging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install/g2complete/src/bootstrap.py

    r3910 r3922  
    213213        missing.append(pkg)
    214214
    215 if missing:
     215if missing and not skipInstallSteps:
    216216    msg = """Sorry, this version of Python cannot be used
    217217for GSAS-II. It is missing the following package(s):
     
    221221    print("\nPlease install these package(s) and try running this again.")
    222222    print("Showing first error: ")
    223     for pkg in ['numpy','scipy','matplotlib','wx',]:
     223    for pkg in ['numpy','scipy','matplotlib','wx','OpenGL',]:
    224224        exec('import '+pkg)
    225225    sys.exit()
    226 # try:
    227 #     import OpenGL
    228 #     install_with_easyinstall = None
    229 # except:
    230 #     try:               
    231 #           from setuptools.command import easy_install                 
    232 #     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 #             return             
    244 #         except:               
    245 #             pass               
    246 #         try:                   
    247 #             print("trying user level ")               
    248 #             easy_install.main(['-f',os.path.split(__file__)[0],'--user',package])             
    249 #             return             
    250 #         except:               
    251 #             print("\nInstall of "+package+" failed. Error traceback follows:")
    252 #             import traceback                   
    253 #             print(traceback.format_exc())
    254 #             sys.exit()
    255226
    256227if not skipDownloadSteps:
Note: See TracChangeset for help on using the changeset viewer.