docstr: Generate list of '(package,src_dir,build_dir,filenames)' tuples
docstr_tok: ["Generate","list","of","'","(","package",",","src_dir",",","build_dir",",","filenames",")","'","tuples"]
code: def get_data_files(self):
      """Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
      data = []
      if not self.packages:
          return data
      for package in self.packages:
          # Locate package source directory
          src_dir = self.get_package_dir(package)
  
          # Compute package build directory
          build_dir = os.path.join(
              *([self.build_lib] + package.split("."))
          )
  
          # Length of path to strip from found files
          plen = 0
          if src_dir:
              plen = len(src_dir) + 1
  
          # Strip directory from globbed filenames
          filenames = [
              file[plen:]
              for file in self.find_data_files(package, src_dir)
          ]
          data.append((package, src_dir, build_dir, filenames))
      return data
  
imports: import os
  import importlib.util
  import sys
  import glob
  from distutils.core import Command
  from distutils.errors import *
  from distutils.util import convert_path, Mixin2to3
  from distutils import log
label_desc: Use image node_id 4 for calling the build_py obj's underlying member method code with example usage: obj.get_data_files() and returns: data, data