Changeset 9494


Ignore:
Timestamp:
Dec 15, 2014 11:29:07 PM (4 years ago)
Author:
wehart
Message:

Updates for Linux, where python files may be installed
in a different directory than the binary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyomo/trunk/scripts/pyomo_install

    r9471 r9494  
    364364    pip = os.path.abspath(os.path.join(pyomo_install_tempdir, sys.exec_prefix[1:], 'bin', 'pip'))
    365365    if not os.path.exists(pip):
    366         print("ERROR: Problem installing pip: "+pip+" "+str(pyomo_install_tempdir))
     366        pip = os.path.abspath(os.path.join(pyomo_install_tempdir, sys.exec_prefix[1:], 'local', 'bin', 'pip'))
     367    if not os.path.exists(pip):
     368        print("ERROR: Problem installing pip: Executable %s is not found."+pip)
    367369        raise SystemExit(1)
    368     else:
     370    #
     371    if True:
    369372        tmp = []
    370373        import site
     
    378381                    tmp.append( os.path.abspath(os.path.join(pyomo_install_tempdir, dir_[1:])) )
    379382        os.environ['PYTHONPATH'] = os.pathsep.join( tmp )
    380         #print(os.environ['PYTHONPATH'])
    381383    #
    382384    python_dir = os.path.abspath(sys.exec_prefix)
Note: See TracChangeset for help on using the changeset viewer.