From c7c9ced8861c6d083328b908ee1fd3194eac9bae Mon Sep 17 00:00:00 2001 From: Francis Murtagh Date: Thu, 12 Aug 2021 16:03:51 +0100 Subject: Github #562: Use standard linux multiple path delimiter for PyArmNN includes * Update Readme Change-Id: Iaf9e50d7c13cfd3fa1fd75fc423265288c0c7f32 Signed-off-by: Francis Murtagh --- python/pyarmnn/CMakeLists.txt | 2 +- python/pyarmnn/README.md | 2 +- python/pyarmnn/setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/pyarmnn/CMakeLists.txt b/python/pyarmnn/CMakeLists.txt index 4823c4db92..f82eac258c 100644 --- a/python/pyarmnn/CMakeLists.txt +++ b/python/pyarmnn/CMakeLists.txt @@ -13,7 +13,7 @@ configure_file(${SWIG_GENERATE_IN} ${SWIG_GENERATE} COPYONLY) # local env variables passed down to the python scripts # scripts can thus be used standalone -set(ARMNN_ENV ARMNN_INCLUDE="${PROJECT_SOURCE_DIR}/include,${PROJECT_SOURCE_DIR}/profiling/common/include" +set(ARMNN_ENV ARMNN_INCLUDE="${PROJECT_SOURCE_DIR}/include:${PROJECT_SOURCE_DIR}/profiling/common/include" ARMNN_LIB=${PROJECT_BINARY_DIR} SWIG_EXECUTABLE=${SWIG_EXECUTABLE}) diff --git a/python/pyarmnn/README.md b/python/pyarmnn/README.md index ee5ddf08d7..a610624034 100644 --- a/python/pyarmnn/README.md +++ b/python/pyarmnn/README.md @@ -138,7 +138,7 @@ If you want to use system default locations, just set *ARMNN_INCLUDE* to point t ```bash $ export ARMNN_LIB=/path/to/libs -$ export ARMNN_INCLUDE=/path/to/headers +$ export ARMNN_INCLUDE=/full/path/to/armnn/include:/full/path/to/armnn/profiling/common/include ``` Install PyArmNN as follows: diff --git a/python/pyarmnn/setup.py b/python/pyarmnn/setup.py index 7bc4a47619..44e810d422 100755 --- a/python/pyarmnn/setup.py +++ b/python/pyarmnn/setup.py @@ -129,7 +129,7 @@ def find_includes(armnn_include_env: str = INCLUDE_ENV_NAME): global armnn_include_path armnn_include_path_raw = os.getenv(armnn_include_env) if not armnn_include_path_raw == None: - armnn_include_path = armnn_include_path_raw.split(",") + armnn_include_path = armnn_include_path_raw.split(":") # validate input paths armnn_include_path_result = [] -- cgit v1.2.1