updated comments in shell script
parent
56539c9e1a
commit
6972a5c9a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue