9f7bdb29dfdc554632ba447fbedf648415d927f0,src/python/pants/backend/python/tasks/python_binary_create.py,PythonBinaryCreate,create_binary,#PythonBinaryCreate#Any#,41

Before Change


    pexinfo = binary.pexinfo.copy()
    pexinfo.build_properties = build_properties

    with self.temporary_pex_builder(pex_info=pexinfo, interpreter=interpreter) as builder:
      chroot = PythonChroot(
        context=self.context,
        targets=[binary],
        builder=builder,
        platforms=binary.platforms,
        interpreter=interpreter)

      pex_path = os.path.join(self._distdir, "%s.pex" % binary.name)
      chroot.dump()
      builder.build(pex_path)

After Change


    for binary in binaries:
      self.create_binary(binary)

  def create_binary(self, binary):
    interpreter = self.select_interpreter_for_targets(binary.closure())

    run_info = self.context.run_tracker.run_info
    build_properties = {}
    build_properties.update(run_info.add_basic_info(run_id=None, timestamp=time.time()))
    build_properties.update(run_info.add_scm_info())

    pexinfo = binary.pexinfo.copy()
    pexinfo.build_properties = build_properties

    with self.temporary_chroot(interpreter=interpreter, pex_info=pexinfo, targets=[binary], platforms=binary.platforms) as chroot:
      pex_path = os.path.join(self._distdir, "%s.pex" % binary.name)
      chroot.builder.build(pex_path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: 9f7bdb29dfdc554632ba447fbedf648415d927f0
Time: 2015-03-23
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks/python_binary_create.py
Class Name: PythonBinaryCreate
Method Name: create_binary


Project Name: pantsbuild/pants
Commit Name: 9f7bdb29dfdc554632ba447fbedf648415d927f0
Time: 2015-03-23
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks/python_run.py
Class Name: PythonRun
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: 9f7bdb29dfdc554632ba447fbedf648415d927f0
Time: 2015-03-23
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks/python_eval.py
Class Name: PythonEval
Method Name: _compile_target