class_docstr: Enhanced 'build_py' command that includes data files with packages
  
  The data files are specified via a 'package_data' argument to 'setup()'.
  See 'setuptools.dist.Distribution' for more details.
  
  Also, this version of the 'build_py' command allows you to specify both
  'py_modules' and 'packages' in the same setup operation.
class_docstr_tok: ["Enhanced","'build_py","'","command","that","includes","data","files","with","packages","The","data","files","are","specified","via","a","'package_data","'","argument","to","'setup","(",")","'",".","See","'setuptools.dist.Distribution","'","for","more","details",".","Also",",","this","version","of","the","'build_py","'","command","allows","you","to","specify","both","'py_modules","'","and","'packages","'","in","the","same","setup","operation","."]
docstr: Build modules, packages, and copy data files to build directory
docstr_tok: ["Build","modules",",","packages",",","and","copy","data","files","to","build","directory"]
code: def run(self):
      """Build modules, packages, and copy data files to build directory"""
      if not (self.py_modules or self.packages) or self.editable_mode:
          return
  
      if self.py_modules:
          self.build_modules()
  
      if self.packages:
          self.build_packages()
          self.build_package_data()
  
      # Only compile actual .py files, using our base class' idea of what our
      # output files are.
      self.byte_compile(
          orig.build_py.get_outputs(self, include_bytecode=0)
      )
  
imports: from functools import partial
  from glob import glob
  from distutils.util import convert_path
  import distutils.command.build_py
  import os
  import fnmatch
  import textwrap
  import distutils.errors
  import itertools
  import stat
  from pathlib import Path
  from typing import Dict, Iterable, Iterator, List, Optional, Tuple
  from ..extern.more_itertools import unique_everseen
  from ..warnings import SetuptoolsDeprecationWarning
label_desc: Use image node_id 3 for calling the build_py obj's underlying member method code with example usage: obj.run() without return types