From 4f98ec889ccaef986150feb5678be29dbb5cf220 Mon Sep 17 00:00:00 2001 From: Ellon Mendes Date: Wed, 25 Nov 2015 14:36:44 +0100 Subject: [PATCH] Fix python instalation using distutils Conflicts: python/README.md --- python/.gitignore | 1 + python/README.md | 2 ++ python/setup.py | 14 ++++++++------ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 python/.gitignore diff --git a/python/.gitignore b/python/.gitignore new file mode 100644 index 000000000..d16386367 --- /dev/null +++ b/python/.gitignore @@ -0,0 +1 @@ +build/ \ No newline at end of file diff --git a/python/README.md b/python/README.md index 4d908e52c..c6e5ed37d 100644 --- a/python/README.md +++ b/python/README.md @@ -9,6 +9,8 @@ During the build of gtsam, when GTSAM_BUILD_PYTHON is enabled, the following ins * The user can use the setup.py script to build and install a python package, allowing easy importing into a python project. Examples: * python setup.py sdist ---- Builds a tarball of the python package which can then be distributed * python setup.py install ---- Installs the package into the python dist-packages folder. Can then be imported from any python file. + * python setup.py install --prefix="your/local/install/path"---- Installs the package into a local instalation folder. Can then be imported from any python file if _prefix_/lib/pythonX.Y/site-packages is present in your $PYTHONPATH + * To run the unit tests, you must first install the package on your path (TODO: Make this easier) diff --git a/python/setup.py b/python/setup.py index a6013da81..46bbfaddf 100755 --- a/python/setup.py +++ b/python/setup.py @@ -4,12 +4,14 @@ from distutils.core import setup -setup(name='GTSAM', - version='3.0', - description='Python Distribution Utilities', +setup(name='gtsam', + version='4.0.0', + description='GTSAM Python wrapper', + license = "BSD", author='Dellaert et. al', author_email='Andrew.Melim@gatech.edu', - url='http://www.python.org/sigs/distutils-sig/', - packages=['gtsam'], - package_data={'gtsam' : ['libgtsam_python.so']}, + maintainer_email='gtsam@lists.gatech.edu', + url='https://collab.cc.gatech.edu/borg/gtsam', + packages=['gtsam', 'gtsam.examples', 'gtsam.utils'], + package_data={'gtsam' : ['_libgtsam_python.so']}, )