Skip to content
Snippets Groups Projects
Commit 81e91586 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

This fixes moose but a better solution to install pymoose in moose-core must be

found.
parent b8384eae
No related branches found
No related tags found
No related merge requests found
......@@ -22,23 +22,23 @@ import site
# if uid is zero then install in root paths. Else install it in user path.
print( '[INFO] Overwriting --prefix ' )
try:
prefixLoc = sys.argv.index( '--prefix' )
del sys.argv[ prefixLoc ]
del sys.argv[ prefixLoc ]
except Exception as e:
pass
uid = os.getuid( )
if uid == 0:
# Here comes the root.
print( ' called by sudo' )
sys.argv += [ '--prefix', '/usr' ]
else:
sys.argv += [ '--prefix', site.getuserbase( ) ]
print( sys.argv )
#print( '[INFO] Overwriting --prefix ' )
#try:
# prefixLoc = sys.argv.index( '--prefix' )
# del sys.argv[ prefixLoc ]
# del sys.argv[ prefixLoc ]
#except Exception as e:
# pass
#
#uid = os.getuid( )
#if uid == 0:
# # Here comes the root.
# print( ' called by sudo' )
# sys.argv += [ '--prefix', '/usr' ]
#else:
# sys.argv += [ '--prefix', site.getuserbase( ) ]
#
#print( sys.argv )
from distutils.core import setup
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment