Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit a651e90

Browse files
authored
Build python package in virtualenv (#3529)
1 parent 59a3c4a commit a651e90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/packages/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ genrule(
605605
"export RELEASE_FILE_DIR=$$(pwd)",
606606
"export TMP_DIR=$$(mktemp -d -t heronpy.XXXXX)",
607607
"echo $$TMP_DIR",
608+
"$(location @virtualenv//:virtualenv) --no-download --quiet --clear $$TMP_DIR/venv",
609+
"PS1= source $$TMP_DIR/venv/bin/activate",
608610
"export HERONPY_DIR=$$TMP_DIR/heronpy",
609611
"export HERONPYAPI_UNZIP=$$TMP_DIR/heronapiunzip",
610612
"export HERONPYSTREAMLET_UNZIP=$$TMP_DIR/heronstreamletunzip",
@@ -660,6 +662,7 @@ genrule(
660662
"//heronpy/connectors:heron-pythonconnectors-package",
661663
"//heronpy/proto:proto-py-package",
662664
"//heronpy/streamlet:heron-python-streamlet-api-package",
665+
"@virtualenv",
663666
],
664667
)
665668

0 commit comments

Comments
 (0)