Skip to content

Commit 4c63690

Browse files
committed
WIP: buf build
1 parent 307fa64 commit 4c63690

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

build-scripts/uv_buf_build_script.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,6 @@ if ! command -v go &> /dev/null; then
4545
fi
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
6549
git 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
7963
done
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+
8181
pip install build protobuf grpcio
8282
python -m build --sdist || { echo "Failed to build source distribution" ; exit 1; }
8383
python -m build --wheel || { echo "Failed to build wheel distribution" ; exit 1; }

0 commit comments

Comments
 (0)