From 530016edf00e9a56cbdb4de27ce612580337a66a Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 24 Jun 2020 11:06:35 -0500 Subject: [PATCH] added Windows batch script to install python wrapped package --- cython/scripts/install.bat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cython/scripts/install.bat b/cython/scripts/install.bat index e69de29bb..4dbd2051f 100755 --- a/cython/scripts/install.bat +++ b/cython/scripts/install.bat @@ -0,0 +1,18 @@ +:: This script runs the installation flow for python wrapped GTSAM. +:: It does so by running `python setup.py install` to install the wrapped package. + +echo "Installing GTSAM Python Wrapper" + +:: Set the package path +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 + echo "Directory $PACKAGE_PATH DOES NOT exist. Please run 'make install' first."; + exit 1; +fi + +:: Run setup.py install with full paths. +echo "Running setup.py in $PACKAGE_PATH" +${PYTHON_EXECUTABLE} $PACKAGE_PATH/setup.py install