File: rules

package info (click to toggle)
python-nbstripout 0.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: python: 870; sh: 18; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 574 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export PYBUILD_NAME=nbstripout
export PYBUILD_TEST_PYTEST=0

PY3VER_DEFAULT := $(shell py3versions -dv)

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/nbstripout/usr
	mv $(CURDIR)/debian/python3-nbstripout/usr/bin $(CURDIR)/debian/nbstripout/usr/

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_install:
	PATH=$(CURDIR)/debian/nbstripout/usr/bin:${PATH} PYTHONPATH=$(CURDIR)/debian/python3-nbstripout/usr/lib/python$(PY3VER_DEFAULT)/dist-packages:${PYTHONPATH} python3 -m pytest
endif