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 <[email protected]>
+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.
_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to