File: rules

package info (click to toggle)
neo 0.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,792 kB
  • ctags: 2,073
  • sloc: python: 19,472; makefile: 90
file content (26 lines) | stat: -rwxr-xr-x 715 bytes parent folder | download | duplicates (2)
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

%:
	dh $@ --with python2 --buildsystem=python_distutils

override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=.. $(MAKE) -C doc html
	-rm doc/build/html/_static/jquery.js doc/build/html/_static/underscore.js
endif

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; for PY in python2.6 $(shell pyversions -r); do \
        [ $${PY#*.} -ge 7 ] || { echo "Skipping $$PY - absent support in neo's tests"; continue; }; \
        echo "I: Running Neo unittests using $$PY"; \
        NOSETESTS_NO_NETWORK=1 $$PY /usr/bin/nosetests -s -v neo ;\
    done
endif


override_dh_clean:
	dh_clean
	rm -rf neo.egg-info
	rm -rf doc/build