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 {} +
|