File: rules

package info (click to toggle)
python-easydev 0.9.37-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 524 kB
  • sloc: python: 2,356; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 777 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
#!/usr/bin/make -f

export LC_ALL=C.UTF-8
export PYBUILD_NAME=easydev

export PYBUILD_BEFORE_TEST={interpreter} {dir}/setup.py egg_info -e {build_dir}
export PYBUILD_AFTER_TEST=cd {build_dir}; rm -rf *.egg-info
export PYBUILD_TEST_ARGS=-k-test_url

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

override_dh_install:
	dh_install

	# remove coverage report
	$(RM) debian/*/usr/lib/python*/dist-packages/.coverage

	# Allow python{,3}-easydev to be co-installable
	# and avoid the generic name "browse" for an executable in /usr/bin
	cd debian/python-easydev/usr/bin \
	&& mv easydev_buildPackage easydev2_buildPackage \
	&& mv browse easydev2_browse
	cd debian/python3-easydev/usr/bin \
	&& mv easydev_buildPackage easydev3_buildPackage \
	&& mv browse easydev3_browse