[med-svn] [Git][med-team/unicycler][master] Add a patch to fix installing step

Liubov Chuprikova gitlab at salsa.debian.org
Fri Sep 7 18:08:36 BST 2018


Liubov Chuprikova pushed to branch master at Debian Med / unicycler


Commits:
d9d606cc by Liubov Chuprikova at 2018-09-07T17:06:57Z
Add a patch to fix installing step

- - - - -


2 changed files:

- + debian/patches/install_wo_extra_steps.patch
- debian/patches/series


Changes:

=====================================
debian/patches/install_wo_extra_steps.patch
=====================================
@@ -0,0 +1,45 @@
+Author: Liubov Chuprikova <chuprikovalv at gmail.com>
+Last-Update: Fri, 7 September 2018 18:46:31 +0200
+Description: Skip extra steps (make distclean and make) while installing as
+they were done earlier
+
+
+--- a/setup.py
++++ b/setup.py
+@@ -99,21 +99,21 @@
+                 sys.exit('Error: no write permission for ' + self.install_scripts + '  ' +
+                          'Perhaps you need to use sudo?')
+ 
+-            # Clean up any previous Unicycler compilation.
+-            clean_cmd = ['make', 'distclean']
+-            self.execute(lambda: subprocess.call(clean_cmd), [],
+-                         'Cleaning previous compilation: ' + ' '.join(clean_cmd))
+-
+-            # Build Unicycler's C++ code.
+-            make_cmd = ['make']
+-            try:
+-                make_cmd += ['-j', str(min(8, multiprocessing.cpu_count()))]
+-            except NotImplementedError:
+-                pass
+-            if self.makeargs:
+-                make_cmd += shlex.split(self.makeargs)
+-            self.execute(lambda: subprocess.call(make_cmd), [],
+-                         'Compiling Unicycler: ' + ' '.join(make_cmd))
++#            # Clean up any previous Unicycler compilation.
++#            clean_cmd = ['make', 'distclean']
++#            self.execute(lambda: subprocess.call(clean_cmd), [],
++#                         'Cleaning previous compilation: ' + ' '.join(clean_cmd))
++#
++#            # Build Unicycler's C++ code.
++#            make_cmd = ['make']
++#            try:
++#                make_cmd += ['-j', str(min(8, multiprocessing.cpu_count()))]
++#            except NotImplementedError:
++#                pass
++#            if self.makeargs:
++#                make_cmd += shlex.split(self.makeargs)
++#            self.execute(lambda: subprocess.call(make_cmd), [],
++#                         'Compiling Unicycler: ' + ' '.join(make_cmd))
+             cpp_code = os.path.join('unicycler', 'cpp_functions.so')
+             if not os.path.isfile(cpp_code):
+                 sys.exit("Error: compilation of Unicycler's C++ component failed")


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 spades.patch
 # bowtie.patch 
+install_wo_extra_steps.patch



View it on GitLab: https://salsa.debian.org/med-team/unicycler/commit/d9d606cce610ce7636e1b023514cf83e941d9a03

-- 
View it on GitLab: https://salsa.debian.org/med-team/unicycler/commit/d9d606cce610ce7636e1b023514cf83e941d9a03
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180907/b7efc793/attachment-0001.html>


More information about the debian-med-commit mailing list