From 6972a5c9a70e5ff8eaa3f8b5b0f9392c2829a195 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 24 Jun 2020 11:06:01 -0500 Subject: [PATCH] updated comments in shell script --- cython/scripts/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cython/scripts/install.sh b/cython/scripts/install.sh index 8e409803d..fdf86f130 100755 --- a/cython/scripts/install.sh +++ b/cython/scripts/install.sh @@ -11,12 +11,13 @@ PACKAGE_PATH=${GTSAM_CYTHON_INSTALL_PATH}${GTSAM_BUILD_TAG} # Check if package directory exists. If not, print warning and exit. if [ ! -d "$PACKAGE_PATH" ] -then +then echo "Directory $PACKAGE_PATH DOES NOT exist. Please run 'make install' first."; exit 1; fi -# Set cython directory permissions to user so we don't get permission denied +# Set cython directory permissions to user so we don't get permission denied. +# This also works inside Docker containers. if [ "$(whoami)" != "root" ] then sudo chown -R $(logname) ${GTSAM_CYTHON_INSTALL_PATH} @@ -24,6 +25,6 @@ else chown -R $(logname) ${GTSAM_CYTHON_INSTALL_PATH} fi -# Run setup.py install with full paths +# Run setup.py install with full paths. echo "Running setup.py in $PACKAGE_PATH" ${PYTHON_EXECUTABLE} $PACKAGE_PATH/setup.py install