Example #1
0
 def bamtools(self):
     i = self.__path('bamtools')
     cmd = "git clone {url} {d}".format(url=i.url, d=i.build_dir)
     Utils.run(cmd)
     i = self.__path('bamtools')
     cmd = "mkdir -p build && cd build && CC=gcc-4.8 CXX=g++-4.8 cmake -DCMAKE_INSTALL_PREFIX:PATH={local_dir} .. && make -j {num_cores} install".format(
         local_dir=shellquote(i.local_dir), num_cores=self.num_cores())
     Utils.run_in_dir(cmd, i.build_dir)
Example #2
0
 def bamtools(self):
     i = self.__path('bamtools')
     cmd = "git clone {url} {d}".format(url=i.url, d=i.build_dir)
     Utils.run(cmd)
     i = self.__path('bamtools')
     #cmd = "mkdir -p build && cd build && CC=gcc-4.8 CXX=g++-4.8 cmake -DCMAKE_INSTALL_PREFIX:PATH={local_dir} .. && make -j {num_cores} install".format(
     #    local_dir=shellquote(i.local_dir), num_cores=self.num_cores())
     if(sys.platform == "darwin"):
         cmd = "mkdir -p build && cd build && CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX:PATH={local_dir} .. && make -j {num_cores} install".format(
         local_dir=shellquote(i.local_dir), num_cores=self.num_cores())
     else:
         if self.args.clang:
             cmd = "mkdir -p build && cd build && CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX:PATH={local_dir} .. && make -j {num_cores} install".format(
         local_dir=shellquote(i.local_dir), num_cores=self.num_cores())
         else:
             cmd = "mkdir -p build && cd build && CC=gcc-4.8 CXX=g++-4.8 cmake -DCMAKE_INSTALL_PREFIX:PATH={local_dir} .. && make -j {num_cores} install".format(
         local_dir=shellquote(i.local_dir), num_cores=self.num_cores())
     Utils.run_in_dir(cmd, i.build_dir)
Example #3
0
def main():
    args = parse_args()
    s = Setup(args)
    if args.print_libs:
        print "Available installs:"
        count = 1
        installs = s.allSetUps
        installs.sort()
        for set in installs:
            print count , ")" , set
            count = count + 1
    elif args.addBashCompletion:
        cmd = "cat bashCompletes/* >> ~/.bash_completion"
        Utils.run(cmd)
        if args.bib_cpp:
            if args.dev:
                cmd = "echo \"complete -F _bibCppTools proto\" >> ~/.bash_completion"
                Utils.run(cmd)
                cmd = "echo \"complete -F _bibCppTools bioalg\" >> ~/.bash_completion"
                Utils.run(cmd)
                cmd = "echo \"complete -F _bibCppTools euler\" >> ~/.bash_completion"
                Utils.run(cmd)
    else:     
        s.setup()
Example #4
0
 def cppitertools(self):
     self.__git(self.__path('cppitertools'))
     i = self.__path('cppitertools')
     cmd = "cd {d} && git checkout d4f79321842dd584f799a7d51d3e066a2cdb7cac".format(d=shellquote(i.local_dir))
     Utils.run(cmd)
Example #5
0
 def __git(self, i):
     cmd = "git clone {url} {d}".format(url=i.url, d=shellquote(i.local_dir))
     Utils.run(cmd)
Example #6
0
 def cppitertools(self):
     self.__git(self.__path('cppitertools'))
     i = self.__path('cppitertools')
     cmd = "cd {d} && git checkout d4f79321842dd584f799a7d51d3e066a2cdb7cac".format(
         d=shellquote(i.local_dir))
     Utils.run(cmd)
Example #7
0
 def __git(self, i):
     cmd = "git clone {url} {d}".format(url=i.url,
                                        d=shellquote(i.local_dir))
     Utils.run(cmd)