File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -45,22 +45,6 @@ if ! command -v go &> /dev/null; then
4545fi
4646
4747
48- # PY_TYPE="--python-preference=only-system"
49- PY_TYPE=" --python-preference=only-managed"
50-
51- loud_print " Creating virtual environment"
52- # Install python deps
53- uv venv .venv --python 3.12 " $PY_TYPE "
54-
55- if ! [ -d " ${BUILD_ROOT} /.venv" ]; then
56- echo " Unable to locate virtual environment directory"
57- exit 1
58- fi
59-
60- loud_print " Activating virtual environment"
61- source " ${BUILD_ROOT} /.venv/bin/activate"
62-
63-
6448# Shallow clone the 'https://github.com/opentdf/platform.git' repo
6549git clone --depth 1 https://github.com/opentdf/platform.git
6650
@@ -78,6 +62,22 @@ for dir in $(find gen -type d); do
7862 touch $dir /__init__.py
7963done
8064
65+ # PY_TYPE="--python-preference=only-system"
66+ PY_TYPE=" --python-preference=only-managed"
67+
68+ loud_print " Creating virtual environment"
69+ # Install python deps
70+ uv venv .venv --python 3.12 " $PY_TYPE "
71+
72+ if ! [ -d " ${BUILD_ROOT} /.venv" ]; then
73+ echo " Unable to locate virtual environment directory"
74+ exit 1
75+ fi
76+
77+ loud_print " Activating virtual environment"
78+ source " ${BUILD_ROOT} /.venv/bin/activate"
79+
80+
8181pip install build protobuf grpcio
8282python -m build --sdist || { echo " Failed to build source distribution" ; exit 1; }
8383python -m build --wheel || { echo " Failed to build wheel distribution" ; exit 1; }
You can’t perform that action at this time.
0 commit comments