File: rules

package info (click to toggle)
python-easydev 0.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 504 kB
  • sloc: python: 2,130; javascript: 49; makefile: 13
file content (23 lines) | stat: -rwxr-xr-x 651 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 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 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/python3-easydev/usr/bin \
	&& mv easydev_buildPackage easydev3_buildPackage \
	&& mv browse easydev3_browse