summaryrefslogtreecommitdiff
path: root/scripts/install.py
diff options
context:
space:
mode:
authorAndrew Meadows <andrew@lindenlab.com>2008-10-10 16:04:02 +0000
committerAndrew Meadows <andrew@lindenlab.com>2008-10-10 16:04:02 +0000
commit5f3875018ee9977917d6fff5f2c2cf87db41ce3e (patch)
tree63ae291bed617d557b5c745a614a2e1cf21e9469 /scripts/install.py
parent4ff16b735f59326514ad92ec38e3261cd996e05c (diff)
svn merge -r99056:99248 svn+ssh://svn.lindenlab.com/svn/linden/branches/andrew/gcc-4-003-for-merge
Diffstat (limited to 'scripts/install.py')
-rwxr-xr-xscripts/install.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/scripts/install.py b/scripts/install.py
index 522fa6e9d9..bb22d16a1a 100755
--- a/scripts/install.py
+++ b/scripts/install.py
@@ -37,6 +37,7 @@ import copy
import md5
import optparse
import os
+import platform
import pprint
import shutil
import sys
@@ -737,7 +738,23 @@ def _get_platform():
'cygwin' : 'windows',
'solaris' : 'solaris'
}
- return platform_map[sys.platform]
+ this_platform = platform_map[sys.platform]
+ if this_platform == 'linux':
+ if platform.architecture()[0] == '64bit':
+ # TODO -- someday when install.py accepts a platform of the form
+ # os/arch/compiler/compiler_version then we can replace the
+ # 'linux64' platform with 'linux/x86_64/gcc/4.1'
+ this_platform = 'linux64'
+ else:
+ gcc_version = os.popen("g++ -dumpversion", 'r').read()[:-3]
+ if gcc_version == '4.1':
+ # the 'linux32' platform is a HACK until we can figure
+ # out how to make the install.py script accept a platform of
+ # the form os/arch/compiler/compiler_version for the download
+ # and extract stage
+ #this_platform = 'linux/i686/gcc/4.1'
+ this_platform = 'linux32'
+ return this_platform
def _getuser():
"Get the user"