Commit c75a53b8 authored by Maude Martin's avatar Maude Martin
Browse files

st healpy

parent df8cba6d
......@@ -23,6 +23,7 @@ def configure(ctx):
print('→ healpix_target is ' + str(Options.options.healpix_target))
print('→ cfitsio_prefix is ' + str(Options.options.cfitsio_prefix))
ctx.env["HEALPIX_TARGET"] = str(Options.options.healpix_target)
ctx.env["CFITSIO_PREFIX"] = str(Options.options.cfitsio_prefix)
ctx.env['CXXFLAGS'].append("-I"+str(Options.options.with_gsl)+"/include")
ctx.env['CXXFLAGS'].append("-I"+str(Options.options.with_fftw3)+"/include")
ctx.env['CXXFLAGS'].append("-I"+str(Options.options.with_numpy_core)+"/include")
......@@ -51,6 +52,7 @@ def build_healpix(bld):
import Options
target=bld.env["HEALPIX_TARGET"]
os.environ['HEALPIX_TARGET'] = target
os.environ['CFITSIO_EXT_PREFIX'] = bld.env["CFITSIO_PREFIX"]
cfitsio = str(Options.options.cfitsio_prefix)
compil_result = os.system('cd ../healpix && make ')
if compil_result != 0:
......@@ -82,7 +84,7 @@ def build(bld):
ccflags = bld.env['CXXFLAGS'],
lib = libs,
uselib = libs,
libpath = [os.path.abspath('../healpix/'+target+'/lib')],
libpath = [os.path.abspath('../healpix/'+target+'/lib'),bld.env["CFITSIO_PREFIX"]+'lib'],
staticlib = [ 'cxxsupport', 'cfitsio', 'fftpack', 'healpix_cxx','psht','c_utils' ],
name = 'spherelib'
)
......@@ -98,23 +100,23 @@ def build(bld):
ccflags = bld.env['CXXFLAGS'],
lib = libs+['fftw3', 'm'],
uselib = libs+['fftw3', 'm'],
libpath = [os.path.abspath('../healpix/'+target+'/lib')],
staticlib = [ 'cxxsupport', 'cfitsio', 'fftpack', 'healpix_cxx','psht','c_utils'],
libpath = [os.path.abspath('../healpix/'+target+'/lib'),bld.env["CFITSIO_PREFIX"]+'lib'],
staticlib = [ 'cxxsupport','cfitsio', 'fftpack', 'healpix_cxx','psht','c_utils'],
name = 'libatlas'
)
cxx_atlas.install_path = '${PREFIX}/lib'
swig_spherelib_map = bld(
swig_spherelib_map = bld(
features = 'cxx cshlib pyext',
includes = ['../lib/atlas','../lib/src', '../healpix/'+target+'/include','spherelib',
'../include', '../lib/src'],
'../include', '../lib/src', bld.env["CFITSIO_PREFIX"]+'/include' ],
source = ['spherelib/spherelib_map.i','spherelib/spherelib_map.cpp'],
target = '_spherelib_map',
swig_flags = '-c++ -python -Wall',
ccflags = bld.env['CXXFLAGS'],
defines = [hp_data],
lib = libs,
libpath = [os.path.abspath('../healpix/'+target+'/lib')],
libpath = [os.path.abspath('../healpix/'+target+'/lib'),bld.env["CFITSIO_PREFIX"]+'lib'],
staticlib = ['cxxsupport', 'cfitsio', 'fftpack', 'healpix_cxx','psht','c_utils'],
uselib_local = ['spherelib', 'libatlas']
)
......@@ -128,7 +130,7 @@ def build(bld):
swig_flags = '-c++ -python -Wall',
defines = [hp_data],
lib = libs,
libpath = [os.path.abspath('../healpix/'+target+'/lib')],
libpath = [os.path.abspath('../healpix/'+target+'/lib'),bld.env["CFITSIO_PREFIX"]+'lib'],
staticlib = ['cxxsupport', 'cfitsio', 'fftpack', 'healpix_cxx','psht','c_utils'],
uselib_local = 'spherelib')
......@@ -141,7 +143,7 @@ def build(bld):
swig_flags = '-c++ -python -Wall',
defines = [hp_data],
lib = libs,
libpath = [os.path.abspath('../healpix/'+target+'/lib')],
libpath = [os.path.abspath('../healpix/'+target+'/lib'),bld.env["CFITSIO_PREFIX"]+'lib'],
staticlib = ['cxxsupport', 'cfitsio', 'fftpack', 'healpix_cxx','psht','c_utils'],
uselib_local = 'spherelib')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment