076e01d237ab3b58cdb395fb04a7f176ab02209d,src/python/twitter/pants/python/python_chroot.py,PythonChroot,_dump_built_library,#PythonChroot#Any#Any#,181

Before Change


          cache_key.hash + "_" + os.path.basename(egg_file))
      self.debug("       %s => %s" % (src_egg_file, dst_egg_file))
      os.rename(src_egg_file, dst_egg_file)
      self._artifact_cache.insert(cache_key, [dst_egg_file])
      self._builder.add_egg(dst_egg_file)

  def resolve(self, targets):

After Change


      self.debug("       %s => %s" % (src_egg_file, dst_egg_file))
      os.rename(src_egg_file, dst_egg_file)
      cache_dir = os.path.join(self._egg_cache_root, cache_key.hash)
      cached_egg_file = os.path.join(cache_dir, os.path.relpath(dst_egg_file, self._root))
      try:
        safe_mkdir_for(cached_egg_file)
        shutil.copy(dst_egg_file, cached_egg_file)
      except:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 076e01d237ab3b58cdb395fb04a7f176ab02209d
Time: 2013-10-31
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/python/python_chroot.py
Class Name: PythonChroot
Method Name: _dump_built_library


Project Name: pantsbuild/pants
Commit Name: 076e01d237ab3b58cdb395fb04a7f176ab02209d
Time: 2013-10-31
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/python/python_chroot.py
Class Name: PythonChroot
Method Name: _dump_built_library


Project Name: pantsbuild/pants
Commit Name: 6387414414ae171c038c5f59c2dbe2cb805b94c8
Time: 2016-05-15
Author: john.sirois@gmail.com
File Name: contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_thrift_gen_integration.py
Class Name: GoThriftGenIntegrationTest
Method Name: test_go_thrift_gen_simple


Project Name: pantsbuild/pants
Commit Name: 6ffda41d1538a5f8e6eab953346a95505c84c40c
Time: 2014-01-17
Author: travis@twitter.com
File Name: src/python/twitter/pants/python/resolver.py
Class Name: MultiResolver
Method Name: __init__