Skip to content

Commit

Permalink
Internal Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 570676345
  • Loading branch information
rstz authored and copybara-github committed Oct 4, 2023
1 parent 7980b0b commit 6cd50c8
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 77 deletions.
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yggdrasil_decision_forests/port/python
5 changes: 1 addition & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ ydf_load_deps(exclude_repo=["tensorflow"])
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()

load("@pybind11_bazel//:python_configure.bzl", "python_configure")
python_configure(name = "local_config_python")
grpc_extra_deps()
3 changes: 0 additions & 3 deletions WORKSPACE_NO_TF
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ grpc_deps()
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()

load("@pybind11_bazel//:python_configure.bzl", "python_configure")
python_configure(name = "local_config_python")

# Emscripten
http_archive(
name = "emsdk",
Expand Down
1 change: 0 additions & 1 deletion third_party/pybind11/BUILD

This file was deleted.

24 changes: 0 additions & 24 deletions third_party/pybind11/workspace.bzl

This file was deleted.

1 change: 0 additions & 1 deletion third_party/pybind11_abseil/BUILD

This file was deleted.

13 changes: 0 additions & 13 deletions third_party/pybind11_abseil/workspace.bzl

This file was deleted.

1 change: 0 additions & 1 deletion third_party/pybind11_protobuf/BUILD

This file was deleted.

15 changes: 0 additions & 15 deletions third_party/pybind11_protobuf/workspace.bzl

This file was deleted.

6 changes: 3 additions & 3 deletions tools/test_pydf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ build_and_maybe_test () {
${BAZEL} version

local flags="--config=linux_cpp17 --config=linux_avx2 --features=-fully_static_link --repo_env=CC=${1}"
local pydf_targets="//yggdrasil_decision_forests/port/python/...:all"
# No tensorflow support
cp -f WORKSPACE_NO_TF WORKSPACE
local pydf_targets="//ydf/...:all"
# Install PYDF components
python3 -m pip install -r yggdrasil_decision_forests/port/python/requirements.txt
python3 -m pip install -r yggdrasil_decision_forests/port/python/dev_requirements.txt

cd yggdrasil_decision_forests/port/python

time ${BAZEL} build ${flags} -- ${pydf_targets}
if [[ "$RUN_TESTS" = 1 ]]; then
time ${BAZEL} test ${flags} -- ${pydf_targets}
Expand Down
12 changes: 0 additions & 12 deletions yggdrasil_decision_forests/library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,8 @@ load("//third_party/boost:workspace.bzl", boost = "deps")
load("//third_party/grpc:workspace.bzl", grpc = "deps")
load("//third_party/rapidjson:workspace.bzl", rapidjson = "deps")
load("//third_party/eigen3:workspace.bzl", eigen = "deps")
load("//third_party/pybind11:workspace.bzl", pybind11 = "deps")
load("//third_party/pybind11_abseil:workspace.bzl", pybind11_abseil = "deps")
load("//third_party/pybind11_protobuf:workspace.bzl", pybind11_protobuf = "deps")

def load_dependencies(repo_name = "", exclude_repo = []):
if "pybind11" not in exclude_repo:
pybind11()

if "pybind11_abseil" not in exclude_repo:
pybind11_abseil()

if "pybind11_protobuf" not in exclude_repo:
pybind11_protobuf()

if "gtest" not in exclude_repo:
gtest()

Expand Down

0 comments on commit 6cd50c8

Please sign in to comment.