File: rules

package info (click to toggle)
python-louvain 0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 964 kB
  • sloc: javascript: 8,547; python: 605; makefile: 89
file content (23 lines) | stat: -rwxr-xr-x 787 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
#!/usr/bin/make -f
export DH_VERBOSE = 1

export PYBUILD_NAME=python-louvain
export PYBUILD_BEFORE_TEST=cp test_community.py {build_dir}
export PYBUILD_TEST_ARGS=-k 'not karate and not range'
export PYBUILD_AFTER_TEST=rm {build_dir}/test_community.py
VERS=0.16

%:
	dh $@ --buildsystem=pybuild

override_dh_install:
	dh_install
	cd debian/python3-louvain/usr/lib/python3*/dist-packages && mv python_louvain-$(VERS).egg-info python_community-$(VERS).egg-info
	cd debian/python3-louvain/usr/bin && mv community louvain-community

override_dh_auto_clean:
	dh_auto_clean
	# clean, even if the package was renamed
	rm -rf debian/python3-louvain debian/python3-louvain.*.debhelper
	rm -rf debian/python3-community debian/python3-community.*.debhelper
	rm -f debian/python3-community.substvars