Author: Liubov Chuprikova <chuprikovalv@gmail.com>
Last-Update: 2018-09-07
Description: Skip extra steps (make distclean and make) while installing as they were done earlier
Forwarded: not-needed

--- a/setup.py
+++ b/setup.py
@@ -96,21 +96,21 @@ class UnicyclerInstall(install):
                 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")
