keras/BUILD
Scott Zhu 9372aa7ad3 Change how OSS Keras import python deps.
1. Remove tf as its workspace deps.
2. All the python code will be retrieved via pip install, rather than pip rule. This is possible since we remove the tf from workspace, which has high priority than the PIP package from local venv.
3. Install all the required python deps via "pip install -r requirements.txt".

This setting should enable us to have "pip uninstall keras-nightly" once we add it to tf-nightly as a deps. Since all the deps are controlled in local venv within the build script.

PiperOrigin-RevId: 364604880
2021-03-23 11:31:28 -07:00

118 lines
3.6 KiB
Python

py_library(
name = "expect_absl_installed",
# This is a dummy rule used as a absl dependency in open-source.
# We expect absl to already be installed on the system, e.g. via
# `pip install absl`
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_h5py_installed",
# This is a dummy rule used as a h5 dependency in open-source.
# We expect h5py to already be installed on the system, e.g. via
# `pip install h5py'
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_keras_preprocessing_installed",
# This is a dummy rule used as a keras_preprocessing dependency in open-source.
# We expect keras_preprocessing to already be installed on the system, e.g. via
# `pip install keras_preprocessing`
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_numpy_installed",
# This is a dummy rule used as a numpy dependency in open-source.
# We expect numpy to already be installed on the system, e.g. via
# `pip install numpy`
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_pandas_installed",
# This is a dummy rule used as a pandas dependency in open-source.
# We expect pandas to already be installed on the system, e.g. via
# `pip install pandas'
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_pillow_installed",
# This is a dummy rule used as a pillow dependency in open-source.
# We expect pillow to already be installed on the system, e.g. via
# `pip install Pillow'
visibility = ["//visibility:public"],
deps = [],
)
# Note that this dependency is for testing only.
py_library(
name = "expect_portpicker_installed",
# This is a dummy rule used as a pandas dependency in open-source.
# We expect portpicker to already be installed on the system, e.g. via
# `pip install portpicker'
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_pydot_installed",
# This is a dummy rule used as a pydot dependency in open-source.
# We expect pydot to already be installed on the system, e.g. via
# `pip install pydot'
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_scipy_installed",
# This is a dummy rule used as a scipy dependency in open-source.
# We expect scipy to already be installed on the system, e.g. via
# `pip install scipy'
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_six_installed",
# This is a dummy rule used as a six dependency in open-source.
# We expect six to already be installed on the system, e.g. via
# `pip install six`
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_tensorboard_installed",
# This is a dummy rule used as a tensorboard dependency in open-source.
# We expect tensorboard to already be installed on the system, e.g. via
# `pip install tensorflow`
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_tensorflow_installed",
# This is a dummy rule used as a tensorflow dependency in open-source.
# We expect tensorflow to already be installed on the system, e.g. via
# `pip install tensorflow`
visibility = ["//visibility:public"],
deps = [],
)
py_library(
name = "expect_yaml_installed",
# This is a dummy rule used as a yaml dependency in open-source.
# We expect yaml to already be installed on the system, e.g. via
# `pip install yaml`
visibility = ["//visibility:public"],
deps = [],
)