| Line 23... |
Line 23... |
import os
|
import os
|
import sys
|
import sys
|
import time
|
import time
|
import commands
|
import commands
|
|
|
# Use en_US as language so that BuildSystem parses compiler messages in english
|
# Use en_US as language so that compiler messages are in English
|
if 'LC_LOCAL' in os.environ and os.environ['LC_LOCAL'] != '' and os.environ['LC_LOCAL'] != 'en_US' and os.environ['LC_LOCAL']!= 'en_US.UTF-8': os.environ['LC_LOCAL'] = 'en_US.UTF-8'
|
if 'LC_LOCAL' in os.environ and os.environ['LC_LOCAL'] != '' and os.environ['LC_LOCAL'] != 'en_US' and os.environ['LC_LOCAL']!= 'en_US.UTF-8': os.environ['LC_LOCAL'] = 'en_US.UTF-8'
|
if 'LANG' in os.environ and os.environ['LANG'] != '' and os.environ['LANG'] != 'en_US' and os.environ['LANG'] != 'en_US.UTF-8': os.environ['LANG'] = 'en_US.UTF-8'
|
if 'LANG' in os.environ and os.environ['LANG'] != '' and os.environ['LANG'] != 'en_US' and os.environ['LANG'] != 'en_US.UTF-8': os.environ['LANG'] = 'en_US.UTF-8'
|
|
|
# should be run from the toplevel
|
# should be run from the toplevel
|
configDir = os.path.abspath('config')
|
configDir = os.path.abspath('config')
|
| Line 205... |
Line 205... |
(result, output) = commands.getstatusoutput('svn info')
|
(result, output) = commands.getstatusoutput('svn info')
|
if result:
|
if result:
|
print 'WARNING: SLEPC_DIR appears to be a subversion working copy, but svn is not found in PATH'
|
print 'WARNING: SLEPC_DIR appears to be a subversion working copy, but svn is not found in PATH'
|
else:
|
else:
|
subversion = 1
|
subversion = 1
|
|
svnrev = '-1'
|
|
svndate = '-1'
|
for line in output.split('\n'):
|
for line in output.split('\n'):
|
if line.startswith('Last Changed Rev: '):
|
if line.startswith('Last Changed Rev: '):
|
svnrev = line.split('Rev: ')[-1]
|
svnrev = line.split('Rev: ')[-1]
|
if line.startswith('Last Changed Date: '):
|
if line.startswith('Last Changed Date: '):
|
svndate = line.split('Date: ')[-1]
|
svndate = line.split('Date: ')[-1]
|