diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-06-28 15:55:53 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-06-28 15:55:53 +0000 |
commit | 45bef27b1c65d6692c0b1e0c9c9423ea8b6d83a8 (patch) | |
tree | 7d54ebcdc5e2f44ea2c2150b1ef00018d5235041 /src/cython/cythonize_gudhi.py.in | |
parent | 27f251520f1fc355e2b7d83225d44adbf6ce63c8 (diff) |
Modify FindGMPXX.cmake to set directory
Cython CmakeLists.txt for compilation and tests (still export PYTHONPATH to be solved)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@1349 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: cc46d7ef7c34ce2bc0408eb612e5ab9241b4c9c0
Diffstat (limited to 'src/cython/cythonize_gudhi.py.in')
-rw-r--r-- | src/cython/cythonize_gudhi.py.in | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/cython/cythonize_gudhi.py.in b/src/cython/cythonize_gudhi.py.in new file mode 100644 index 00000000..fb9a381e --- /dev/null +++ b/src/cython/cythonize_gudhi.py.in @@ -0,0 +1,47 @@ +from distutils.core import setup, Extension +from Cython.Build import cythonize + +"""This file is part of the Gudhi Library. The Gudhi library + (Geometric Understanding in Higher Dimensions) is a generic C++ + library for computational topology. + + Author(s): Vincent Rouvreau + + Copyright (C) 2016 INRIA Saclay (France) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + +__author__ = "Vincent Rouvreau" +__copyright__ = "Copyright (C) 2016 INRIA Saclay (France)" +__license__ = "GPL v3" + +gudhi = Extension( + "gudhi", + sources = ['gudhi.pyx',], + language = 'c++', + extra_compile_args=[@GUDHI_CYTHON_EXTRA_COMPILE_ARGS@], + libraries=[@GUDHI_CYTHON_LIBRARIES@], + library_dirs=[@GUDHI_CYTHON_LIBRARY_DIRS@], + include_dirs = [@GUDHI_CYTHON_INCLUDE_DIRS@], +) + +setup( + name = 'gudhi', + author='Vincent Rouvreau', + author_email='gudhi-contact@lists.gforge.inria.fr', + version='0.1.0', + url='http://gudhi.gforge.inria.fr/', + ext_modules = cythonize(gudhi), +) |