File: rules

package info (click to toggle)
python-plac 0.9.6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 852 kB
  • sloc: python: 1,987; makefile: 16
file content (21 lines) | stat: -rwxr-xr-x 518 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
#!/usr/bin/make -f
export PYBUILD_NAME = plac
export PYBUILD_DISABLE_python2 = 1

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

override_dh_auto_configure:
	dh_auto_configure
	cp -a plac_runner.py plac_runner
	find . -type f ! -path '*debian*' ! -path '*.git*' -exec \
		sed -i -e s/plac_runner.py/plac_runner/g '{}' +

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test || true
endif

override_dh_auto_install:
	dh_auto_install
	find . -type d -name '__pycache__' -exec rm -rf {} +