First draft of SHTs in Python wrapper
This commit is contained in:
parent
c680bbb2e5
commit
48e213151a
7 changed files with 397 additions and 17 deletions
11
Makefile
11
Makefile
|
@ -62,9 +62,10 @@ perftest: compile_all
|
|||
genclean:
|
||||
rm libsharp/sharp_legendre.c || exit 0
|
||||
|
||||
pytest:
|
||||
rm python/libsharp/libsharp.so || exit 0
|
||||
cd python && LIBSHARP_INCLUDE=$(INCDIR) LIBSHARP_LIB=$(LIBDIR) python setup.py build_ext --inplace
|
||||
cd python && nosetests libsharp
|
||||
|
||||
python/libsharp/libsharp.so: python/libsharp/libsharp.pyx $(LIB_libsharp)
|
||||
cython $<
|
||||
$(CC) -fPIC `python-config --cflags` -I$(INCDIR) -o python/libsharp/libsharp.o -c python/libsharp/libsharp.c
|
||||
$(CL) -shared python/libsharp/libsharp.o -L$(LIBDIR) -lsharp -lfftpack -lc_utils `python-config --libs` -o $@
|
||||
|
||||
pytest: python/libsharp/libsharp.so
|
||||
cd python && nosetests --nocapture libsharp/tests/test_sht.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue