updated comments in shell script

release/4.3a0
Varun Agrawal 2020-06-24 11:06:01 -05:00
parent 56539c9e1a
commit 6972a5c9a7
1 changed files with 4 additions and 3 deletions

View File

@ -11,12 +11,13 @@ PACKAGE_PATH=${GTSAM_CYTHON_INSTALL_PATH}${GTSAM_BUILD_TAG}
# Check if package directory exists. If not, print warning and exit. # Check if package directory exists. If not, print warning and exit.
if [ ! -d "$PACKAGE_PATH" ] if [ ! -d "$PACKAGE_PATH" ]
then then
echo "Directory $PACKAGE_PATH DOES NOT exist. Please run 'make install' first."; echo "Directory $PACKAGE_PATH DOES NOT exist. Please run 'make install' first.";
exit 1; exit 1;
fi 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" ] if [ "$(whoami)" != "root" ]
then then
sudo chown -R $(logname) ${GTSAM_CYTHON_INSTALL_PATH} sudo chown -R $(logname) ${GTSAM_CYTHON_INSTALL_PATH}
@ -24,6 +25,6 @@ else
chown -R $(logname) ${GTSAM_CYTHON_INSTALL_PATH} chown -R $(logname) ${GTSAM_CYTHON_INSTALL_PATH}
fi fi
# Run setup.py install with full paths # Run setup.py install with full paths.
echo "Running setup.py in $PACKAGE_PATH" echo "Running setup.py in $PACKAGE_PATH"
${PYTHON_EXECUTABLE} $PACKAGE_PATH/setup.py install ${PYTHON_EXECUTABLE} $PACKAGE_PATH/setup.py install