Changeset 9532


Ignore:
Timestamp:
Dec 21, 2014 10:13:18 PM (4 years ago)
Author:
wehart
Message:

Resolving Linux installation issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyomo/trunk/scripts/pyomo_install

    r9502 r9532  
    149149                    filename = os.path.join(root, fname)
    150150        for dir_ in dirs:
    151             if dir_ == 'site-packages':
    152                 #print("HERE %s" % os.path.join(root, dir_))
     151            if dir_ == 'site-packages' or dir_ == 'dist-packages':
    153152                os.environ['PYTHONPATH'] = os.path.join( root, dir_ )
    154153    if not filename is None:
     
    421420        call_subprocess([pip, 'install', '-v', '--target=%s' % pyomo_install_tempdir,'pyutilib.virtualenv'], options)
    422421        vpy_install = os.path.join(pyomo_install_tempdir, 'pyutilib', 'virtualenv', 'vpy_install.py')
    423         del os.environ['PYTHONPATH']
     422        if 'PYTHONPATH' in os.environ:
     423            del os.environ['PYTHONPATH']
    424424        #
    425425        # Run vpy_install to install the Pyomo trunk in a virtual environment
Note: See TracChangeset for help on using the changeset viewer.