| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # export DH_VERBOSE = 1 |
| 4 | |
| 5 | export PYBUILD_NAME=scikit-fmm |
| 6 | |
| 7 | export CFLAGS+=$(shell python3-config --cflags) |
| 8 | export LDFLAGS+=$(shell python3-config --ldflags) |
| 9 | |
| 10 | %: |
| 11 | dh $@ --with python3 --with numpy3 --buildsystem=pybuild |
| 12 | |
| 13 | override_dh_auto_clean: |
| 14 | rm -f $(CURDIR)/skfmm/pheap.cpp |
| 15 | dh_auto_clean |
| 16 | |
| 17 | override_dh_auto_configure: |
| 18 | cython3 --cplus -3 $(CURDIR)/skfmm/pheap.pyx |
| 19 | dh_auto_configure |
| 20 | |
| 21 | |
| 22 | # If you need to rebuild the Sphinx documentation |
| 23 | # Add spinxdoc to the dh --with line |
| 24 | #override_dh_auto_build: |
| 25 | # dh_auto_build |
| 26 | # PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator |
| 27 | # PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator |