1. Daniel Neuhäuser
  2. python-benchmarks

Commits

DasIch  committed cb1f903

Implemented execution of Source:commands

  • Participants
  • Parent commits 1a0708d
  • Branches default

Comments (0)

Files changed (1)

File builder.py

View file
             update_repo(source_dir, method)
 
 
+def build_interpreters(interpreter_cfg, interpreter_path):
+    for name, config in interpreter_cfg.iteritems():
+        cwd = os.path.join(interpreter_path, name, 'Source')
+        for command in config['Source']['commands']:
+            call_subprocess(command, cwd=cwd)
+
+
 def main(argv=sys.argv):
     parser = OptionParser(usage='%prog [-ci]')
     parser.add_option(
     init_interpreters(interpreters, 'Interpreters')
     if options.update:
         update_interpreters(interpreters, 'Interpreters')
+    build_interpreters(interpreters, 'Interpreters')
 
 
 if __name__ == '__main__':