From def2f1a91ca237ea1265873cb2afcfaf6d5ae7f4 Mon Sep 17 00:00:00 2001 From: Andrew Melim Date: Wed, 20 Nov 2013 05:31:21 +0000 Subject: [PATCH] Installation script for python Distutils for python package. Installs to default python dist-packages location call : python setup.py install --- python/gtsam/__init__.py | 1 + python/setup.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 python/gtsam/__init__.py create mode 100644 python/setup.py diff --git a/python/gtsam/__init__.py b/python/gtsam/__init__.py new file mode 100644 index 000000000..2e9b00af1 --- /dev/null +++ b/python/gtsam/__init__.py @@ -0,0 +1 @@ +from libgtsam import * \ No newline at end of file diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 000000000..abbafda4b --- /dev/null +++ b/python/setup.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +#http://docs.python.org/2/distutils/setupscript.html#setup-script + +from distutils.core import setup + +setup(name='GTSAM', + version='3.0', + description='Python Distribution Utilities', + author='Dellaert et. al', + author_email='Andrew.Melim@gatech.edu', + url='http://www.python.org/sigs/distutils-sig/', + packages=['gtsam'], + package_data={'gtsam' : ['libgtsam.so']}, + )