Changeset 3359
- Timestamp:
- Jul 18, 2006, 4:49:34 PM (18 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
SConstruct
r3353 r3359 1 1 import os 2 2 import sys 3 import py_compile 4 5 # Function to build a .pyc from a .py 6 def build_pyc(target, source, env): 7 py_compile.compile(str(source[0]), str(target[0]), doraise=True) 8 return None 3 9 4 10 # Read in build options … … 7 13 opts.Add('MSVCFLAGS', 'Flags passed to the MSVC compiler') 8 14 15 # Create the .pyc builder 16 pyc_builder = Builder(action = build_pyc, 17 suffix = '.pyc', 18 src_suffix = '.py') 19 9 20 env = Environment(options = opts) 21 env.Append(BUILDERS={'Pyc' : pyc_builder}) 10 22 11 23 Help(opts.GenerateHelpText(env)) … … 48 60 Export('env') 49 61 62 # Build .pyc files of every .py in here and below. 63 files = [] 64 dirs = filter(os.path.isdir, os.listdir('.')) 65 while(dirs != []): 66 dirs += filter(os.path.isdir, map(lambda x : dirs[0] + os.sep + x, os.listdir(dirs[0]))) 67 files += filter(lambda x : x[-3:] == '.py', map(lambda x : dirs[0] + os.sep + x, os.listdir(dirs[0]))) 68 dirs = dirs[1:] 69 for x in files: 70 env.Pyc(x + 'c', x) 71 50 72 SConscript(['inundation/SConscript']) -
inundation-numpy-branch/pyvolution/netherlands-chris.py
r1290 r3359 97 97 N = 60 98 98 99 <<<<<<< .mine100 99 N = 4 101 =======102 100 #N = 140 103 >>>>>>> .r817104 105 101 #N = 15 106 102 -
inundation/pyvolution/netherlands-chris.py
r1290 r3359 97 97 N = 60 98 98 99 <<<<<<< .mine100 99 N = 4 101 =======102 100 #N = 140 103 >>>>>>> .r817104 105 101 #N = 15 106 102 -
production/merimbula_2005/run_merimbula_lake_weed.py
r2622 r3359 52 52 for i in range(n): 53 53 #print i 54 z.append([0,0])54 z.append([0,0]) 55 55 z[i][0] = 755471.4 + (points[i][0] + 3250.)/1.125 56 56 z[i][1] = 5910260.0 + (points[i][1] + 1337.)/1.12
Note: See TracChangeset
for help on using the changeset viewer.