/[escript]/branches/escript3047_with_pastix2995/SConstruct
ViewVC logotype

Diff of /branches/escript3047_with_pastix2995/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1246 by phornby, Mon Aug 13 22:09:00 2007 UTC revision 1247 by ksteube, Tue Aug 14 01:29:20 2007 UTC
# Line 15  EnsurePythonVersion(2,3) Line 15  EnsurePythonVersion(2,3)
15  #===============================================================  #===============================================================
16  #   import tools:  #   import tools:
17  import glob  import glob
18  import sys, os  import sys, os, re
19  # Add our extensions  # Add our extensions
20  if sys.path.count('scons')==0: sys.path.append('scons')  if sys.path.count('scons')==0: sys.path.append('scons')
21  import scons_extensions  import scons_extensions
# Line 673  try: Line 673  try:
673  except KeyError:  except KeyError:
674     api_doxygen = None     api_doxygen = None
675    
676    try:
677       svn_pipe = os.popen("svn info | grep '^Revision'")
678       rev = svn_pipe.readlines()
679       svn_pipe.close()
680       svn_version = re.sub("[^0-9]", "", rev[0])
681    except:
682       svn_version = "0"
683    env.Append(CPPDEFINES = "SVN_VERSION="+svn_version)
684    
685  # Python install - esys __init__.py  # Python install - esys __init__.py
686  init_target = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET'))  init_target = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET'))
687    

Legend:
Removed from v.1246  
changed lines
  Added in v.1247

  ViewVC Help
Powered by ViewVC 1.1.26