Skip to content

Commit d6ffe2f

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 d6ffe2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backend/python/common/libbackend.sh

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

387+
# This is needed to build wheels that e.g. depends on Python.h
388+
if [ "x${PORTABLE_PYTHON}" == "xtrue" ]; then
389+
export C_INCLUDE_PATH="${C_INCLUDE_PATH:-}:$(_portable_dir)/include/python${PYTHON_VERSION}"
390+
fi
391+
387392
for reqFile in ${requirementFiles[@]}; do
388393
if [ -f "${reqFile}" ]; then
389394
echo "starting requirements install for ${reqFile}"

0 commit comments

Comments
 (0)