def _get_native_artifact_deps(self, target):
     native_artifact_targets = []
     if target.dependencies:
         for dep_tgt in target.dependencies:
             if not NativeLibrary.produces_ctypes_native_library(dep_tgt):
                 raise TargetDefinitionException(
                     target,
                     "Target '{}' is invalid: the only dependencies allowed in python_dist() targets "
                     "are C or C++ targets with a ctypes_native_library= kwarg."
                     .format(dep_tgt.address.spec))
             native_artifact_targets.append(dep_tgt)
     return native_artifact_targets
 def _get_native_artifact_deps(self, target):
   native_artifact_targets = []
   if target.dependencies:
     for dep_tgt in target.dependencies:
       if not NativeLibrary.produces_ctypes_native_library(dep_tgt):
         raise TargetDefinitionException(
           target,
           "Target '{}' is invalid: the only dependencies allowed in python_dist() targets "
           "are C or C++ targets with a ctypes_native_library= kwarg."
           .format(dep_tgt.address.spec))
       native_artifact_targets.append(dep_tgt)
   return native_artifact_targets