Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/openstack-pkg-tools/pkgos.make
4
5 %:
6 dh $@ --buildsystem=pybuild --with python3
7
8 override_dh_auto_clean:
9 rm -rf build .stestr *.egg-info .pybuild
10 find . -iname '*.pyc' -delete
11 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
12
13 override_dh_auto_build:
14 echo "Do nothing..."
15
16 override_dh_auto_install:
17 for i in $(PYTHON3S) ; do \
18 python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
19 done
20 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
21 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2 'tests.unit.*'
22 endif
23
24 override_dh_auto_test:
25 echo "Do nothing..."