示例#1
0
 def __download(self):
     UtilsUI.print_step_begin("Downloading")
     repo = "https://github.com/mne-tools/mne-cpp.git"
     repo_dir = os.path.join(self.arg_dest, self.REPO_FOLDER)
     call("git clone " + repo + " " + repo_dir, shell=True)
     UtilsUI.print_step_end("Downloading")
     return True
示例#2
0
 def __initialize(self):
     UtilsUI.print_step_begin("Initializing")
     repo_dir = os.path.join(self.arg_dest, self.REPO_FOLDER)
     os.chdir(repo_dir)
     call("git checkout " + self.arg_version, shell=True)
     UtilsUI.print_step_end("Initializing")
     return True
示例#3
0
 def __download(self):
     UtilsUI.print_step_begin("Downloading")
     repo = "https://bitbucket.org/eigen/eigen/"
     repo_dir = os.path.join(self.arg_dest, self.REPO_FOLDER)
     call("hg clone " + repo + " " + repo_dir, shell=True)
     UtilsUI.print_step_end("Downloading")
     return True
示例#4
0
 def __configure(self):
     UtilsUI.print_step_begin("Configuring")
     build_dir = os.path.join(self.arg_dest, self.REPO_FOLDER,
                              self.BUILD_FOLDER)
     if not os.path.exists(build_dir):
         os.mkdir(build_dir)
     else:
         print("You may have to clear the folder:\n" + build_dir)
     os.chdir(build_dir)
     # Check and test, which options can be disabled to get required libs
     # Print dependencies with two following cmake: cmake -D...; cmake -D...
     options = []
     options.append("-DCMAKE_BUILD_TYPE=Release")
     options.append("-DBUILD_apps=OFF")
     options.append("-DBUILD_examples=OFF")
     options.append("-DBUILD_geometry=OFF")
     options.append("-DBUILD_global_tests=OFF")
     options.append("-DBUILD_io=OFF")
     options.append("-DBUILD_segmentation=OFF")
     options.append("-DBUILD_surface=OFF")
     options.append("-DBUILD_surface_on_nurbs=OFF")
     options.append("-DBUILD_tracking=OFF")
     options.append("-DBUILD_visualization=OFF")
     cmake_cmd = "cmake " + ' '.join(options) + " ../"
     call(cmake_cmd, shell=True)
     UtilsUI.print_step_end("Configuring")
     return True
示例#5
0
 def __download(self):
     UtilsUI.print_step_begin("Downloading")
     repo = "https://bitbucket.org/eigen/eigen/"
     repo_dir = os.path.join(self.arg_dest, self.REPO_FOLDER)
     call("hg clone " + repo + " " + repo_dir, shell=True)
     UtilsUI.print_step_end("Downloading")
     return True
示例#6
0
 def __configure(self):
     UtilsUI.print_step_begin("Configuring")
     mne_dir = os.path.join(self.arg_dest, self.REPO_FOLDER, "MNE")
     os.chdir(mne_dir)
     mne_configure = self.arg_qmake5 + " -recursive"
     call(mne_configure, shell=True)
     UtilsUI.print_step_end("Configuring")
     return True
示例#7
0
 def __compile(self):
     UtilsUI.print_step_begin("Compiling")
     mne_dir = os.path.join(self.arg_dest, self.REPO_FOLDER, "MNE")
     os.chdir(mne_dir)
     jobs = UtilsUI.ask_for_make_jobs()
     call("make -j" + str(jobs), shell=True)
     UtilsUI.print_step_end("Compiling")
     return True
示例#8
0
 def __initialize(self):
     UtilsUI.print_step_begin("Initializing")
     repo_dir = os.path.join(self.arg_dest, self.REPO_FOLDER)
     os.chdir(repo_dir)
     version = "38667b56a09aa2e15c58eba85f455d99c42ce880"  # 2014-11-19
     call("git checkout " + version, shell=True)
     UtilsUI.print_step_end("Initializing")
     return True
示例#9
0
 def __initialize(self):
     UtilsUI.print_step_begin("Initializing")
     repo_dir = os.path.join(self.arg_dest, self.REPO_FOLDER)
     os.chdir(repo_dir)
     version = "3.2.2"
     call("hg update " + version, shell=True)
     UtilsUI.print_step_end("Initializing")
     return True
示例#10
0
 def __compile_install(self):
     UtilsUI.print_step_begin("Compiling & Installing")
     build_dir = os.path.join(self.arg_dest, self.REPO_FOLDER,
                              self.BUILD_FOLDER)
     os.chdir(build_dir)
     jobs = UtilsUI.ask_for_make_jobs()
     call("make -j" + str(jobs), shell=True)
     if UtilsUI.ask_for_execute(
             "Install PCL to system? (requires root/sudo)"):
         call("sudo make install", shell=True)
     UtilsUI.print_step_end("Compiling & Installing")
     return True
示例#11
0
 def __compile(self):
     UtilsUI.print_step_begin("Compiling")
     self.__compile_ftb_buffer()
     self.__compile_ftb_client()
     UtilsUI.print_step_end("Compiling")
     return True
示例#12
0
 def __compile(self):
     UtilsUI.print_step_begin("Compiling")
     self.__compile_ftb_buffer()
     self.__compile_ftb_client()
     UtilsUI.print_step_end("Compiling")
     return True