File: rules

package info (click to toggle)
datalad-container 0.2.2-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 264 kB
  • sloc: python: 1,282; makefile: 202; sh: 34
file content (22 lines) | stat: -rwxr-xr-x 663 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
#!/usr/bin/make -f

export PYBUILD_NAME=datalad-container
# cannot do testing with just build'ed version since that one does not register entry points
export PYBUILD_DISABLE=test

export DATALAD_TESTS_NONETWORK = 1

PY3VERSIONS=$(shell py3versions -vr)

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

override_dh_auto_install:
	dh_auto_install
	(set -e; \
     for v in $(PY3VERSIONS); do \
        moddir=debian/datalad-container/usr/lib/python$$v/dist-packages/datalad_container; \
        HOME=$(CURDIR)/.pybuild python$$v -m nose -s -v $$moddir && \
		find "$$moddir" -iname *pyc -delete && \
		find "$$moddir" -iname __pycache__ | xargs rm -rf ; \
	 done;)