File: rules

package info (click to toggle)
python-pangolearn 2022-07-09%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184,720 kB
  • sloc: python: 801; sh: 77; makefile: 16
file content (25 lines) | stat: -rwxr-xr-x 917 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

export PYBUILD_NAME = pangolearn

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

override_dh_install:
	dh_install
	rm -rf debian/python3-$(PYBUILD_NAME)/usr/bin

override_dh_python3:
	dh_python3
	# Follow request of ftpmaster https://alioth-lists.debian.net/pipermail/debian-med-packaging/2022-October/104236.html
	mkdir -p debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)
	mv debian/python3-$(PYBUILD_NAME)/usr/lib/python3/dist-packages/pangoLEARN/data	debian/python3-$(PYBUILD_NAME)/usr/share/python3-$(PYBUILD_NAME)
	dh_link /usr/share/python3-$(PYBUILD_NAME)/data /usr/lib/python3/dist-packages/pangoLEARN/data

INSTALLDIR = $(CURDIR)/debian/python3-pangolearn
DATADIR = $(INSTALLDIR)/usr/share/python3-pangolearn/data
execute_after_dh_fixperms:
	chmod -v -x $(DATADIR)/decisionTree_recall_report.csv
	chmod -v -x $(DATADIR)/randomForest_recall_report.csv