Skip to content

Commit

Permalink
Fix ubuntu stub
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Jan 8, 2025
1 parent 6eadb29 commit 11fcd79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ if in-array "build-release-package" "$BUILD_OPTIONS"; then
export PATH="$pythonroot:$pythonroot/DLLs:$pythonroot/Lib:$PATH_RESET"
fi
PYTHON_SCRIPT_DIR=$(cd "$SRC_DIR/applications/plugins/SofaPython3/scripts" && pwd -W )
PYTHON_SITE_PACKAGE_DIR=$(cd "$BUILD_DIR/python3/site-packages" && pwd -W )
PYTHON_SITE_PACKAGE_DIR=$(cd "$BUILD_DIR/lib/python3/site-packages" && pwd -W )
export PYTHONPATH="$PYTHON_SITE_PACKAGE_DIR:$PYTHONPATH"

else
export PYTHONPATH="$(cd "$BUILD_DIR/python3/site-packages" && pwd):$PYTHONPATH"
PYTHON_SCRIPT_DIR=$(cd "$SRC_DIR/applications/plugins/SofaPython3/scripts" && pwd )
PYTHON_SITE_PACKAGE_DIR=$(cd "$BUILD_DIR/lib/python3/site-packages" && pwd )
export PYTHONPATH="$PYTHON_SITE_PACKAGE_DIR:$PYTHONPATH"
fi

python_exe="$(find-python)"
Expand Down

0 comments on commit 11fcd79

Please sign in to comment.