Build python package in virtualenv (#3529)
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 @@
"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 @@
"//heronpy/connectors:heron-pythonconnectors-package",
"//heronpy/proto:proto-py-package",
"//heronpy/streamlet:heron-python-streamlet-api-package",
+ "@virtualenv",
],
)