From 2de56486313331574fbe13f58f4d09e18b3d4501 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 10 Oct 2024 13:30:31 -0700 Subject: [PATCH] Install PyBind before TensorFlow to get the MediaPipe version PiperOrigin-RevId: 684558561 --- WORKSPACE | 57 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 2d6a1826d5..bcf99a7ae1 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -243,6 +243,35 @@ http_archive( url = "https://github.com/google/XNNPACK/archive/9007aa93227010168e615f9c6552035040c94a15.zip", ) + +# 2020-07-09 +http_archive( + name = "pybind11_bazel", + strip_prefix = "pybind11_bazel-203508e14aab7309892a1c5f7dd05debda22d9a5", + urls = ["https://github.com/pybind/pybind11_bazel/archive/203508e14aab7309892a1c5f7dd05debda22d9a5.zip"], + sha256 = "75922da3a1bdb417d820398eb03d4e9bd067c4905a4246d35a44c01d62154d91", +) + +# 2022-10-20 +http_archive( + name = "pybind11", + urls = [ + "https://github.com/pybind/pybind11/archive/v2.10.1.zip", + ], + sha256 = "fcf94065efcfd0a7a828bacf118fa11c43f6390d0c805e3e6342ac119f2e9976", + strip_prefix = "pybind11-2.10.1", + build_file = "@pybind11_bazel//:pybind11.BUILD", +) + +http_archive( + name = "pybind11_protobuf", + sha256 = "baa1f53568283630a5055c85f0898b8810f7a6431bd01bbaedd32b4c1defbcb1", + strip_prefix = "pybind11_protobuf-3594106f2df3d725e65015ffb4c7886d6eeee683", + urls = [ + "https://github.com/pybind/pybind11_protobuf/archive/3594106f2df3d725e65015ffb4c7886d6eeee683.tar.gz", + ], +) + # TF on 2024-09-24 _TENSORFLOW_GIT_COMMIT = "5329ec8dd396487982ef3e743f98c0195af39a6b" @@ -489,34 +518,6 @@ http_archive( ], ) -# 2020-07-09 -http_archive( - name = "pybind11_bazel", - strip_prefix = "pybind11_bazel-203508e14aab7309892a1c5f7dd05debda22d9a5", - urls = ["https://github.com/pybind/pybind11_bazel/archive/203508e14aab7309892a1c5f7dd05debda22d9a5.zip"], - sha256 = "75922da3a1bdb417d820398eb03d4e9bd067c4905a4246d35a44c01d62154d91", -) - -# 2022-10-20 -http_archive( - name = "pybind11", - urls = [ - "https://github.com/pybind/pybind11/archive/v2.10.1.zip", - ], - sha256 = "fcf94065efcfd0a7a828bacf118fa11c43f6390d0c805e3e6342ac119f2e9976", - strip_prefix = "pybind11-2.10.1", - build_file = "@pybind11_bazel//:pybind11.BUILD", -) - -http_archive( - name = "pybind11_protobuf", - sha256 = "baa1f53568283630a5055c85f0898b8810f7a6431bd01bbaedd32b4c1defbcb1", - strip_prefix = "pybind11_protobuf-3594106f2df3d725e65015ffb4c7886d6eeee683", - urls = [ - "https://github.com/pybind/pybind11_protobuf/archive/3594106f2df3d725e65015ffb4c7886d6eeee683.tar.gz", - ], -) - # Point to the commit that deprecates the usage of Eigen::MappedSparseMatrix. http_archive( name = "ceres_solver",