Skip to content
Commits on Source (2)
......@@ -254,11 +254,14 @@ Last-Update: Tue, 03 Sep 2019 11:02:34 +0200
if ((nt_seq == "T" and nt_ref =="C") or (nt_seq == "A" and nt_ref =="G")):
--- a/mapdamage/rescale_test.py
+++ b/mapdamage/rescale_test.py
@@ -1,6 +1,6 @@
@@ -1,6 +1,9 @@
import unittest
import optparse
-import rescale
+try:
+ from . import rescale
+except:
+ from mapdamage import rescale
import pysam
import filecmp
......@@ -406,9 +409,12 @@ Last-Update: Tue, 03 Sep 2019 11:02:34 +0200
# -*- coding: utf-8 -*-
from distutils.core import setup
@@ -16,7 +16,7 @@ def setup_version():
@@ -14,9 +14,9 @@ def setup_version():
try:
version = subprocess.check_output(("git", "describe", "--always", "--tags", "--dirty"))
with open(os.path.join("mapdamage", "_version.py"), "w") as handle:
handle.write("#!/usr/bin/env python\n")
- handle.write("#!/usr/bin/env python\n")
+ handle.write("#!/usr/bin/python3\n")
handle.write("__version__ = %r\n" % (version.strip(),))
- except (subprocess.CalledProcessError, OSError), error:
+ except (subprocess.CalledProcessError, OSError) as error:
......
......@@ -12,7 +12,7 @@ cd $ADTTMP
cp -a /usr/share/doc/${pkg}/tests/* .
cp -a /usr/share/doc/${pkg}/ref_T.fa .
gunzip -r *
python rescale_test.py
python3 rescale_test.py
mapDamage -i rescale_test/pe_test/pe.sam -r ref_T.fa
......