source: anuga_core/compile_all.py @ 3514

Last change on this file since 3514 was 3514, checked in by duncan, 18 years ago

Hi all,
I'm doing a change in the anuga structure, moving the code to

\anuga_core\source\anuga

After you have done an svn update, the PYTHONPATH has to be changed to;
PYTHONPATH = anuga_core/source/

This is part of changes required to make installation of anuga quicker and reducing the size of our sandpits.

If any imports are broken, try fixing them. With adding anuga. to them for example. If this seems to have really broken things, email/phone me.

Cheers
Duncan

File size: 640 bytes
Line 
1import os
2
3buildroot = os.getcwd()
4
5os.chdir('source')
6
7os.chdir('anuga')
8
9#Complete horrible hack to decide which branch to take (Ole)
10#try:
11#    os.stat('inundation-numpy-branch')
12#except:
13#    os.chdir('inundation')
14#else:
15#    os.chdir('inundation-numpy-branch')   
16
17print 'Changing to', os.getcwd()       
18
19#entries = listdir('.')
20
21
22#Attempt to compile all extensions
23
24os.chdir('utilities')
25execfile('compile.py')
26
27os.chdir('..')
28os.chdir('pyvolution')
29execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
30
31os.chdir('..')
32os.chdir('mesh_engine')
33execfile('compile.py')
34
35os.chdir(buildroot)   
36#execfile('test_all.py')
37   
Note: See TracBrowser for help on using the repository browser.