aboutsummarylogtreecommitdiffstats
path: root/libbackend.patch
blob: 4ea970e84d4c731010d57746c38fbaf76d41969e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff --git a/backend/python/common/libbackend.sh b/backend/python/common/libbackend.sh
index 934b1fd3..870ba409 100644
--- a/backend/python/common/libbackend.sh
+++ b/backend/python/common/libbackend.sh
@@ -88,7 +88,7 @@ function getBuildProfile() {
 # always result in an activated virtual environment
 function ensureVenv() {
     if [ ! -d "${EDIR}/venv" ]; then
-        uv venv ${EDIR}/venv
+        uv venv --system-site-packages ${EDIR}/venv
         echo "virtualenv created"
     fi
 
@@ -125,35 +125,12 @@ function ensureVenv() {
 function installRequirements() {
     ensureVenv
 
-    # These are the requirements files we will attempt to install, in order
-    declare -a requirementFiles=(
-        "${EDIR}/requirements-install.txt"
-        "${EDIR}/requirements.txt"
-        "${EDIR}/requirements-${BUILD_TYPE}.txt"
-    )
-
-    if [ "x${BUILD_TYPE}" != "x${BUILD_PROFILE}" ]; then
-        requirementFiles+=("${EDIR}/requirements-${BUILD_PROFILE}.txt")
-    fi
-
-    # if BUILD_TYPE is empty, we are a CPU build, so we should try to install the CPU requirements
-    if [ "x${BUILD_TYPE}" == "x" ]; then
-        requirementFiles+=("${EDIR}/requirements-cpu.txt")
-    fi
-
-    requirementFiles+=("${EDIR}/requirements-after.txt")
-
-    if [ "x${BUILD_TYPE}" != "x${BUILD_PROFILE}" ]; then
-        requirementFiles+=("${EDIR}/requirements-${BUILD_PROFILE}-after.txt")
-    fi
-
-    for reqFile in ${requirementFiles[@]}; do
+    reqFile="${EDIR}/requirements.txt"
         if [ -f ${reqFile} ]; then
             echo "starting requirements install for ${reqFile}"
             uv pip install ${EXTRA_PIP_INSTALL_FLAGS} --requirement ${reqFile}
             echo "finished requirements install for ${reqFile}"
         fi
-    done
 }
 
 # startBackend discovers and runs the backend GRPC server