File: rules

package info (click to toggle)
python-fisx 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 21,588 kB
  • sloc: cpp: 9,085; python: 1,321; sh: 144; makefile: 44
file content (30 lines) | stat: -rwxr-xr-x 713 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/make -f

export DH_VERBOSE=1
export PYBUILD_VERBOSE=1

export WITH_CYTHON=1
export FISX_DATA_DIR=/usr/share/fisx
export FISX_DOC_DIR=/usr/share/doc/python-fisx-common
export PKGCOMMON=$(CURDIR)/debian/python-fisx-common/

export PYBUILD_NAME=fisx
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}$(FISX_DATA_DIR)

override_dh_clean:
	dh_clean
	rm -rf python/fisx.egg-info/

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	dh_numpy3

	# install the common files
	python3 setup.py install_data --root $(PKGCOMMON)
	rm -f $(PKGCOMMON)/$(FISX_DATA_DIR)/LICENSE

override_dh_auto_test:
	FISX_DATA_DIR=$(CURDIR)/fisx_data FISX_DOC_DIR=$(CURDIR)/fisx_data dh_auto_test