Skip to content

Commit 96606fb

Browse files
committed
fix: set C_INCLUDE_PATH to point to python install
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 913e132 commit 96606fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/python/common/libbackend.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ function installRequirements() {
384384
requirementFiles+=("${EDIR}/requirements-${BUILD_PROFILE}-after.txt")
385385
fi
386386

387+
if [ "x${PORTABLE_PYTHON}" == "xtrue" ]; then
388+
export C_INCLUDE_PATH="${C_INCLUDE_PATH:-}:$(_portable_dir)/include/python${PYTHON_VERSION}"
389+
fi
390+
387391
for reqFile in ${requirementFiles[@]}; do
388392
if [ -f "${reqFile}" ]; then
389393
echo "starting requirements install for ${reqFile}"

0 commit comments

Comments
 (0)