This is an automated email from the ASF dual-hosted git repository.

saadurrahman pushed a commit to branch saadurrahman/native-python-rules-phase1
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit 1985b4faa9ccf1a3ba24138add108ebdaa7cf114
Author: Saad Ur Rahman <[email protected]>
AuthorDate: Fri Jan 28 12:17:45 2022 -0500

    [Build] Workspace
    
    Added pip_install entry.
---
 WORKSPACE | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/WORKSPACE b/WORKSPACE
index 65370cf..b160c03 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -179,6 +179,16 @@ http_archive(
     url = 
"https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz";,
 )
 
+
+load("@rules_python//python:pip.bzl", "pip_install")
+# Create a central external repo, @heron_py_deps, that contains Bazel targets 
for all the
+# third-party packages specified in the requirements.txt file.
+pip_install(
+   name = "heron_py_deps",
+   requirements = "//tools/python:requirements.txt",
+)
+
+
 load("@rules_python//python:repositories.bzl", "py_repositories")
 
 py_repositories()

Reply via email to