StochSS / GillesPy2

Modeling toolkit for biochemical simulation
http://gillespy2.readthedocs.io/
GNU General Public License v3.0
71 stars 31 forks source link

Cleanup Compiler Warning Messages #914

Closed briandrawert closed 1 year ago

briandrawert commented 1 year ago

To test, in file gillespy2/solvers/cpp/build/make.py add the lines:

         except KeyboardInterrupt:
             log.warning(f"Makefile was interrupted during execution of target: '{target}', unexpected behavior may occur.")

+        print(f"Return code: {result.returncode}"
+              f"- make_cmd: {' '.join(make_cmd)}\n"
+              f"- stdout: {result.stdout.decode('utf-8', errors='ignore')}\n"
+              f"- stderr: {result.stderr.decode('utf-8', errors='ignore')}\n"
+              )
         if result.returncode == 0 and os.path.exists(self.output_file):
             return