From: Michael R. Crusoe <crusoe@debian.org>
Subject: explictly use Python version 3
Forwarded: https://github.com/macs3-project/MACS/pull/623
--- macs.orig/test/cmdlinetest
+++ macs/test/cmdlinetest
@@ -280,7 +280,7 @@
 		# the similar using jaccard index
 		if [[ "$fq" == *.bed || "$fq" == *.gappedPeak || "$fq" == *.narrowPeak || "$fq" == *.bed12 ]]; then
 		    # for peaks, we will use our jaccard index script to check
-		    ji=$(python ./jaccard.py "$fq" "$fs")
+		    ji=$(python3 ./jaccard.py "$fq" "$fs")
 		    # Compare the output value
 		    if (( $(echo "$ji > 0.99" | bc -l) )); then
 			echo " ... success! Results are different but Jaccard Index is $ji (>0.99)"
--- macs.orig/test/cmdlinetest-nohmmratac
+++ macs/test/cmdlinetest-nohmmratac
@@ -280,7 +280,7 @@
 		# the similar using jaccard index
 		if [[ "$fq" == *.bed || "$fq" == *.gappedPeak || "$fq" == *.narrowPeak || "$fq" == *.bed12 ]]; then
 		    # for peaks, we will use our jaccard index script to check
-		    ji=$(python ./jaccard.py "$fq" "$fs")
+		    ji=$(python3 ./jaccard.py "$fq" "$fs")
 		    # Compare the output value
 		    if (( $(echo "$ji > 0.99" | bc -l) )); then
 			echo " ... success! Results are different but Jaccard Index is $ji (>0.99)"
--- macs.orig/test/pyprofile
+++ macs/test/pyprofile
@@ -21,7 +21,7 @@
 CMD=${CMD[@]: 1}
 
 # run CMD with cProfile
-python -m cProfile -o $PROF $CMD
+python3 -m cProfile -o $PROF $CMD
 
 # brief the profile
 ./pyprofile_stat $PROF tottime > ${PROF/.prof/}.tottime
