Commit 4f9b3de8 authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Use setup.py develop to un-deploy the project

parent 2bdaab1d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ qiime (2019.7.0-1) UNRELEASED; urgency=medium

  [ Liubov Chuprikova ]
  * New upstream version 
  * Use setup.py develop to un-deploy the project after testing 

 -- Andreas Tille <tille@debian.org>  Fri, 02 Aug 2019 23:15:44 +0200

+5 −3
Original line number Diff line number Diff line
@@ -9,10 +9,12 @@ include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# 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_AFTER_TEST=rm -rf {build_dir}/qiime2.egg-* {build_dir}/site.py {build_dir}/easy-install.pth
# Un-deploy the project and delete site.py script
export PYBUILD_AFTER_TEST=rm -v {build_dir}/site.py; \
	python{version} setup.py develop --uninstall --install-dir {build_dir}

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