Commit 91e52ab8 authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Use setup.py develop to un-deploy the project after testing

parent d281145b
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -3,11 +3,12 @@
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

# For testing, we need .egg-info so the entry points are available.
# For testing, we need to deploy the project in the build directory
# so that qiime2 plugins are loaded
export PYBUILD_BEFORE_TEST=python{version} setup.py develop --install-dir {build_dir}
# Delete .egg-info and other files that were generated along with .egg-info
export PYBUILD_BEFORE_INSTALL=rm -rvf {build_dir}/q2-cutadapt.egg-* {build_dir}/site.py \
	{build_dir}/.coverage* {build_dir}/easy-install.pth
# Un-deploy the project
export PYBUILD_AFTER_TEST=rm -v {build_dir}/site.py {build_dir}/.coverage*; \
	python{version} setup.py develop --uninstall --install-dir {build_dir}

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