diff --git a/lib/installer.py b/lib/installer.py index 8307832..5143d81 100644 --- a/lib/installer.py +++ b/lib/installer.py @@ -32,8 +32,8 @@ def install_lib(lib, src_dir, work_dir, inst_dir, comp_cc, comp_cxx, comp_fc, bu if not os.path.exists(lib['name']+"-"+lib['version']): print("Downloading Source Code") - load_command = lib['download'].replace("$VERSION_UNDERSCORE", lib_version.replace(".", "_")).replace("$VERSION", lib_version).split() - err = subprocess.call(load_command, stdout=logfile, stderr=logfile) + load_command = lib['download'].replace("$VERSION_UNDERSCORE", lib_version.replace(".", "_")).replace("$VERSION", lib_version) + err = subprocess.call(load_command, stdout=logfile, stderr=logfile, shell=True) if err != 0: print("Error: Download of "+lib_name+" v."+lib_version+" failed!") print("See "+logfile_path+" for details") @@ -103,7 +103,10 @@ def install_lib(lib, src_dir, work_dir, inst_dir, comp_cc, comp_cxx, comp_fc, bu print("See "+logfile_path+" for details") sys.exit(1) print("Library "+lib_name+" has been installed successfully!\n") - build_output_path = inst_dir+"/"+"build_info" - if not os.path.exists(build_output_path): - os.makedirs(build_output_path) - shutil.copyfile(logfile_path, build_output_path+"/"+lib_name+".log") \ No newline at end of file + + # copy logfile to install location + if not verbose: + build_output_path = inst_dir+"/"+"build_info" + if not os.path.exists(build_output_path): + os.makedirs(build_output_path) + shutil.copyfile(logfile_path, build_output_path+"/"+lib_name+".log")