File: rules

package info (click to toggle)
python-paver 1.2.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 1,220 kB
  • ctags: 979
  • sloc: python: 4,678; makefile: 20
file content (28 lines) | stat: -rwxr-xr-x 1,090 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
27
28
#!/usr/bin/make -f

# since paver itself is run as part of the clean process, it generates .pyc files when paver is run.  The the Debian build gets confused by the *.pyc files that exist after cleaning.  Adding -B to python calls prevents that from happening:

override_dh_auto_clean:
	/usr/bin/python -B setup.py clean
	rm -f $(shell find paver/ -name '*.pyc' -printf "%p ")
	rm -rf Paver.egg-info
	find -name '._*' -delete

override_dh_auto_install:
	/usr/bin/python setup.py install --root=$(CURDIR)/debian/python-paver \
	  --install-layout=deb
	mv $(CURDIR)/debian/python-paver/usr/lib/python2.7/dist-packages/paver/docs \
		$(CURDIR)/debian/python-paver/usr/share/doc/python-paver/html
	dh_link /usr/share/javascript/jquery/jquery.js \
	  /usr/share/doc/python-paver/html/_static/jquery.js
	dh_link /usr/share/javascript/jquery/underscore.js \
	  /usr/share/doc/python-paver/html/_static/underscore.js

override_dh_compress:
	dh_compress -i -X.py -X.rst -X.js -X.html

override_dh_installchangelogs:
	dh_installchangelogs ./paver/docs/_sources/changelog.txt

%:
	dh $@ --with python2