/[escript]/trunk/finley/py_src/SConscript
ViewVC logotype

Contents of /trunk/finley/py_src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1133 - (show annotations)
Tue May 8 07:19:33 2007 UTC (15 years, 10 months ago) by gross
File size: 548 byte(s)
Changes needed for windows. This still does not work on and has not run on linux and the altix. 
 
There are a few changes in names in the scons script, in particular _libs is used rather than _lib and _libs is always a list. By default on windows MSVC is used. The location of python is at C:\Program Files\python<version>, boost at C:\Program Files\boost and netcdf at C:\Program Files\netcdf. 

 
1 Import('*')
2
3 local_env=env.Copy()
4
5 src_dir = local_env.Dir('.').srcnode().abspath
6
7 import os
8 filenames = os.listdir(src_dir)
9 python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]
10
11 pyc = local_env.PyCompile(python_src)
12
13 local_env.Depends(pyc, dep_lib)
14 local_env.Install(pyinstall+'/finley', pyc)
15
16 # get all the python files in the release tar file
17 release_py = [ env.File("SConscript"), ] + [ env.File(x) for x in python_src ]
18 env.Zip(src_zipfile, release_py)
19 try:
20 env.Tar(src_tarfile, release_py)
21 except AttributeError:
22 pass

  ViewVC Help
Powered by ViewVC 1.1.26