moved setup scripts back to subdirs where they are needed

This commit is contained in:
Franz Roters 2011-03-22 15:42:53 +00:00
parent 31a570768b
commit 8467c91dab
3 changed files with 9 additions and 8 deletions

View File

@ -10,7 +10,7 @@ architectures = {
}, },
} }
wd = os.path.join(os.path.dirname(sys.argv[0]),'../../code') wd = os.path.join(os.path.dirname(sys.argv[0]),'..')
for arch in architectures: for arch in architectures:
me = architectures[arch] me = architectures[arch]

View File

@ -16,8 +16,9 @@ else
wd=$1 wd=$1
fi fi
f2py -c --f90flags="-heap-arrays 500000000" \ cd $wd
$wd/postprocessingMath.pyf \
$wd/postprocessingMath.f90 \
-L $wd/libfftw3.a
f2py -c --f90flags="-heap-arrays 500000000" \
postprocessingMath.pyf \
postprocessingMath.f90 \
-L libfftw3.a

View File

@ -43,7 +43,7 @@ execute = { \
} }
homedir = os.getenv('HOME') homedir = os.getenv('HOME')
basedir = os.path.join(os.path.dirname(sys.argv[0]),'../../processing') basedir = os.path.join(os.path.dirname(sys.argv[0]),'..')
for dir in bin_link: for dir in bin_link:
for file in bin_link[dir]: for file in bin_link[dir]:
src = os.path.abspath(os.path.join(basedir,dir,file)) src = os.path.abspath(os.path.join(basedir,dir,file))
@ -63,7 +63,7 @@ for dir in compile:
print file print file
os.system('ifort -O3 -parallel -o%s %s'%(os.path.splitext(src)[0],src)) os.system('ifort -O3 -parallel -o%s %s'%(os.path.splitext(src)[0],src))
modules = glob.glob(os.path.abspath(os.path.join(basedir,'*.mod'))) modules = glob.glob('*.mod')
for module in modules: for module in modules:
print module print module
os.remove(module) os.remove(module)