File: rules

package info (click to toggle)
python-virtualenv 1.11.6%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 728 kB
  • ctags: 526
  • sloc: python: 2,521; makefile: 121; sh: 52; csh: 21
file content (25 lines) | stat: -rwxr-xr-x 596 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

export PYBUILD_NAME=virtualenv

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

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

override_dh_python2:
	dh_python2
	# No Python 2 cli script.
	rm -rf debian/python-virtualenv/usr/bin

override_dh_auto_install:
	dh_auto_install
	# Use the separate binary package for the cli script.
	mkdir -p debian/virtualenv/usr/bin
	mv debian/python3-virtualenv/usr/bin/virtualenv \
	   debian/virtualenv/usr/bin
	rm -rf debian/python3-virtualenv/usr/bin

override_dh_installchangelogs:
	dh_installchangelogs docs/news.rst