Example #1
0
File: bs.py Project: ndim/nbb
 def make(self, *make_args):
     """'make'"""
     builddir = self.config.builddir
     if not os.path.exists(os.path.join(builddir, 'config.status')):
         self.configure()
     os.chdir(builddir)
     progutils.prog_run(["make"] + list(make_args), self.context)
Example #2
0
 def run(self):
     if hasattr(self.bs_sourcetree, 'make'):
         self.bs_sourcetree.make(*self.args)
     else:
         os.chdir(self.bs_sourcetree.config.builddir)
         progutils.prog_run(["make"] + list(self.args),
                            self.context)
Example #3
0
File: bs.py Project: ndim/nbb
 def install(self):
     """'make install'"""
     builddir = self.config.builddir
     if not os.path.exists(os.path.join(builddir, 'config.status')):
         self.configure()
     os.chdir(builddir)
     progutils.prog_run(["make", "install", "INSTALL=/usr/bin/install -p"],
                        self.context)
Example #4
0
File: bs.py Project: ndim/nbb
 def configure(self):
     """'configure --prefix'"""
     if not os.path.exists(os.path.join(self.config.srcdir, 'configure')):
         self.init()
     builddir = self.config.builddir
     if not os.path.exists(builddir):
         os.makedirs(builddir)
     os.chdir(builddir)
     progutils.prog_run(["%s/configure" % self.config.srcdir,
                         "--prefix=%s" % self.config.installdir,
                         "--enable-maintainer-mode",
                         ], self.context)
Example #5
0
File: bs.py Project: ndim/nbb
 def install(self):
     progutils.prog_run(["scons", "install"],
                        self.context)
Example #6
0
File: bs.py Project: ndim/nbb
 def build(self):
     progutils.prog_run(["scons"],
                        self.context)
Example #7
0
File: bs.py Project: ndim/nbb
 def init(self):
     """'autoreconf'"""
     progutils.prog_run(["autoreconf", "-v", "-i", "-s", self.config.srcdir],
                        self.context)
Example #8
0
 def run(self):
     self.chdir()
     # TODO: Allow using $SHELL or similar.
     progutils.prog_run(['sh'] + list(self.args), self.context,
                        env_update = {'PS1': self.get_shell_prompt()})
Example #9
0
 def run(self):
     self.chdir()
     progutils.prog_run(list(self.args), self.context)