You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by jo...@apache.org on 2020/05/30 00:29:46 UTC
[incubator-heron] branch master updated: Build python package in
virtualenv (#3529)
This is an automated email from the ASF dual-hosted git repository.
joshfischer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push:
new a651e90 Build python package in virtualenv (#3529)
a651e90 is described below
commit a651e90ae80c516deae677fafcda069fba35e4b8
Author: Oliver Bristow <ev...@gmail.com>
AuthorDate: Sat May 30 01:29:38 2020 +0100
Build python package in virtualenv (#3529)
---
scripts/packages/BUILD | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/packages/BUILD b/scripts/packages/BUILD
index 4f0f714..64cfb90 100644
--- a/scripts/packages/BUILD
+++ b/scripts/packages/BUILD
@@ -605,6 +605,8 @@ genrule(
"export RELEASE_FILE_DIR=$$(pwd)",
"export TMP_DIR=$$(mktemp -d -t heronpy.XXXXX)",
"echo $$TMP_DIR",
+ "$(location @virtualenv//:virtualenv) --no-download --quiet --clear $$TMP_DIR/venv",
+ "PS1= source $$TMP_DIR/venv/bin/activate",
"export HERONPY_DIR=$$TMP_DIR/heronpy",
"export HERONPYAPI_UNZIP=$$TMP_DIR/heronapiunzip",
"export HERONPYSTREAMLET_UNZIP=$$TMP_DIR/heronstreamletunzip",
@@ -660,6 +662,7 @@ genrule(
"//heronpy/connectors:heron-pythonconnectors-package",
"//heronpy/proto:proto-py-package",
"//heronpy/streamlet:heron-python-streamlet-api-package",
+ "@virtualenv",
],
)