moved setup scripts back to subdirs where they are needed
This commit is contained in:
parent
31a570768b
commit
8467c91dab
|
@ -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:
|
||||
me = architectures[arch]
|
|
@ -16,8 +16,9 @@ else
|
|||
wd=$1
|
||||
fi
|
||||
|
||||
f2py -c --f90flags="-heap-arrays 500000000" \
|
||||
$wd/postprocessingMath.pyf \
|
||||
$wd/postprocessingMath.f90 \
|
||||
-L $wd/libfftw3.a
|
||||
cd $wd
|
||||
|
||||
f2py -c --f90flags="-heap-arrays 500000000" \
|
||||
postprocessingMath.pyf \
|
||||
postprocessingMath.f90 \
|
||||
-L libfftw3.a
|
||||
|
|
|
@ -43,7 +43,7 @@ execute = { \
|
|||
}
|
||||
|
||||
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 file in bin_link[dir]:
|
||||
src = os.path.abspath(os.path.join(basedir,dir,file))
|
||||
|
@ -62,8 +62,8 @@ for dir in compile:
|
|||
if os.path.isfile(src):
|
||||
print file
|
||||
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:
|
||||
print module
|
||||
os.remove(module)
|
Loading…
Reference in New Issue