/[escript]/branches/windows_from_1456_trunk/pycad/py_src/SConscript
ViewVC logotype

Annotation of /branches/windows_from_1456_trunk/pycad/py_src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1133 - (hide annotations)
Tue May 8 07:19:33 2007 UTC (13 years, 11 months ago) by gross
Original Path: trunk/pycad/py_src/SConscript
File size: 752 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 gross 898 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     # env.SConscript(dirs = ['renderers'],duplicate=0)
13    
14     # local_env.Depends(pyc, dep_lib)
15     local_env.Install(pyinstall+'/pycad', pyc)
16    
17     # get all the python files in the release tar file
18     release_py = [ env.File("SConscript"), ] + [ env.File(x) for x in python_src ]
19     env.Zip(src_zipfile, release_py)
20 gross 1133 try:
21     env.Tar(src_tarfile, release_py)
22     except AttributeError:
23     pass
24 gross 898 # Call the unit tests SConscript
25     local_env.SConscript(dirs = ['#/pycad/test/python'], build_dir='#/build/$PLATFORM/pycad/test/python', duplicate=0)
26    
27    

  ViewVC Help
Powered by ViewVC 1.1.26