diff --git a/backends/apple/coreml/TARGETS b/backends/apple/coreml/TARGETS index d77e33679ab..df1165dd74e 100644 --- a/backends/apple/coreml/TARGETS +++ b/backends/apple/coreml/TARGETS @@ -14,10 +14,10 @@ runtime.python_library( "@EXECUTORCH_CLIENTS", ], deps = [ + "fbsource//third-party/pypi/coremltools:coremltools", ":executorchcoreml", "//executorch/exir/backend:backend_details", "//executorch/exir/backend:compile_spec_schema", - "fbsource//third-party/pypi/coremltools:coremltools", ], ) @@ -30,13 +30,13 @@ runtime.python_library( "@EXECUTORCH_CLIENTS", ], deps = [ + "fbsource//third-party/pypi/coremltools:coremltools", ":backend", "//caffe2:torch", "//executorch/exir:lib", "//executorch/exir/backend:compile_spec_schema", "//executorch/exir/backend:partitioner", "//executorch/exir/backend:utils", - "fbsource//third-party/pypi/coremltools:coremltools", ], ) @@ -64,25 +64,23 @@ runtime.cxx_python_extension( headers = glob([ "runtime/inmemoryfs/**/*.hpp", ]), + base_module = "", + compiler_flags = [ + "-std=c++17", + ], preprocessor_flags = [ "-Iexecutorch/backends/apple/coreml/runtime/util", ], types = [ "executorchcoreml.pyi", ], - compiler_flags = [ - "-std=c++17", - ], - base_module = "", visibility = [ "//executorch/examples/apple/coreml/...", "@EXECUTORCH_CLIENTS", ], - external_deps = [ - "pybind11", - ], deps = [ "fbsource//third-party/nlohmann-json:nlohmann-json", + "fbsource//third-party/pybind11:pybind11", ], ) @@ -92,10 +90,10 @@ runtime.python_test( "test/*.py", ]), deps = [ + "fbsource//third-party/pypi/pytest:pytest", ":partitioner", ":quantizer", "//caffe2:torch", "//pytorch/vision:torchvision", - "fbsource//third-party/pypi/pytest:pytest", ], ) diff --git a/backends/qualcomm/aot/python/targets.bzl b/backends/qualcomm/aot/python/targets.bzl index e1f5a6a8fc5..f29c02aa593 100644 --- a/backends/qualcomm/aot/python/targets.bzl +++ b/backends/qualcomm/aot/python/targets.bzl @@ -33,10 +33,10 @@ def define_common_targets(): "//executorch/backends/qualcomm:schema", "//executorch/backends/qualcomm/aot/ir:qcir_utils", "//executorch/backends/qualcomm/runtime:runtime", + "fbsource//third-party/pybind11:pybind11", "fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()), ], external_deps = [ - "pybind11", "libtorch_python", ], use_static_deps = True, @@ -66,10 +66,10 @@ def define_common_targets(): "//executorch/backends/qualcomm:schema", "//executorch/backends/qualcomm/aot/ir:qcir_utils", "//executorch/backends/qualcomm/runtime:runtime", + "fbsource//third-party/pybind11:pybind11", "fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()), ], external_deps = [ - "pybind11", "libtorch_python", ], use_static_deps = True, @@ -93,9 +93,7 @@ def define_common_targets(): "//executorch/backends/qualcomm:schema", "//executorch/backends/qualcomm/aot/ir:qcir_utils", "//executorch/backends/qualcomm/runtime:runtime", + "fbsource//third-party/pybind11:pybind11", "fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_verision()), ], - external_deps = [ - "pybind11", - ], ) diff --git a/exir/verification/TARGETS b/exir/verification/TARGETS index 8ee9e5546e3..092b48658df 100644 --- a/exir/verification/TARGETS +++ b/exir/verification/TARGETS @@ -10,13 +10,11 @@ cpp_python_extension( "bindings.cpp", ], deps = [ + "fbsource//third-party/pybind11:pybind11", "//caffe2:torch-cpp-cpu", "//caffe2:torch_extension", "//caffe2/c10:c10", ], - external_deps = [ - "pybind11", - ], ) python_library( diff --git a/extension/pytree/TARGETS b/extension/pytree/TARGETS index 400a5b9504c..005c5c9c2d7 100644 --- a/extension/pytree/TARGETS +++ b/extension/pytree/TARGETS @@ -16,11 +16,9 @@ cpp_python_extension( ], base_module = "executorch.extension.pytree", deps = [ + "fbsource//third-party/pybind11:pybind11", ":pytree", ], - external_deps = [ - "pybind11", - ], ) cpp_python_extension( @@ -30,11 +28,9 @@ cpp_python_extension( ], base_module = "executorch.extension.pytree", deps = [ + "fbsource//third-party/pybind11:pybind11", ":pytree", ], - external_deps = [ - "pybind11", - ], ) python_library( diff --git a/extension/training/pybindings/TARGETS b/extension/training/pybindings/TARGETS index 6aa11ea6726..19b54961493 100644 --- a/extension/training/pybindings/TARGETS +++ b/extension/training/pybindings/TARGETS @@ -17,13 +17,11 @@ runtime.cxx_python_extension( types = ["_training_lib.pyi"], visibility = ["//executorch/extension/training/..."], deps = [ + "fbsource//third-party/pybind11:pybind11", "//executorch/extension/aten_util:aten_bridge", "//executorch/extension/training/optimizer:sgd", ], - external_deps = [ - "pybind11", - "libtorch_python", - ], + external_deps = ["libtorch_python"], ) runtime.python_library(