Source

SHTns / setup.py.in

The default branch has multiple heads

Full commit
# Python setup

from distutils.core import setup, Extension
from numpy import get_include

numpy_inc = get_include()		#  NumPy include path.
shtns_o = ['SHT.o', 'sht_std.o', 'sht_ltr.o', 'sht_m0.o', 'sht_m0ltr.o']
libdir = "@prefix@/lib"
cargs = "@OPENMP_CFLAGS@"
libs = "@LIBS@"
libslist = libs.replace('-l','').split()	# transform to list of libraries

shtns_module = Extension('_shtns', sources=['shtns_numpy_wrap.c'],
	extra_objects=shtns_o, depends=shtns_o,
	extra_compile_args=[cargs],
	library_dirs=[libdir],
	libraries=libslist,
	include_dirs=[numpy_inc])

setup(name='SHTns',
	version='2.2',
	description='High performance Spherical Harmonic Transform',
	license='CeCILL',
	author='Nathanael Schaeffer',
	author_email='nschaeff@ujf-grenoble.fr',
	url='https://bitbucket.org/nschaeff/shtns',
	ext_modules=[shtns_module],
	py_modules=["shtns"],
	)