parameters: (self)
return_statement: return data
docstring: Generate list of '(package,src_dir,build_dir,filenames)' tuples
docstring_summary: Generate list of '(package,src_dir,build_dir,filenames)' tuples
docstring_tokens: Generate list of ( package src_dir build_dir filenames ) tuples
function: 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
function_tokens: def get_data_files ( self ) : 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