Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Dev/python include dirs #3280

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions scripts/install_python_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ fi
# actually locate Python.h before setting it as an include
#
# Recursively find Python.h and then parse the include directory
PYTHON_HEADER_PATH=$(find ${PYTHON_INCLUDE_DIR} -name "python*" | head -n 1)
PYTHON_PATH=${PYTHON_HEADER_PATH%include/*}
PYTHON_INCLUDE_PATH="${PYTHON_PATH}include/python*"

if [[ ${PYTHON_MAJOR_VERSION} -ge 3 && ${PYTHON_MINOR_VERSION} -gt 5 ]]; then
PYTHON_HEADER_PATH=$(find ${PYTHON_INCLUDE_DIR} -name "python*" | head -n 1)
PYTHON_PATH=${PYTHON_HEADER_PATH%include/*}
PYTHON_INCLUDE_PATH="${PYTHON_PATH}include/python*"
DEPS_INCLUDE_FOLDER="$DEPS_ENV_FOLDER"/include
if [[ ${DEPS_INCLUDE_FOLDER} != ${PYTHON_INCLUDE_DIR} ]]; then
rm -rf $DEPS_INCLUDE_FOLDER
Expand Down