Fix python instalation using distutils

Conflicts:
	python/README.md
release/4.3a0
Ellon Mendes 2015-11-25 14:36:44 +01:00
parent d3db7309bc
commit 4f98ec889c
3 changed files with 11 additions and 6 deletions

1
python/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/

View File

@ -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)

View File

@ -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']},
)