diff options
Diffstat (limited to 'python/setup.py.in')
-rw-r--r-- | python/setup.py.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/python/setup.py.in b/python/setup.py.in new file mode 100644 index 0000000..6a44482 --- /dev/null +++ b/python/setup.py.in @@ -0,0 +1,35 @@ +# +# Copyright (C) 2012 Red Hat, Inc. All rights reserved. +# +# This file is part of LVM2. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 2.1 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +from distutils.core import setup, Extension + +liblvm = Extension('lvm', + sources = ['liblvm_python.c'], + libraries= ['lvm2app'], + library_dirs= ['@top_builddir@/liblvm'], + include_dirs= ['@top_builddir@/include']) + +setup (name='lvm', + version=@LVM_VERSION@, + description='Python bindings for liblvm2', + license="LGPLv2+", + maintainer='LVM2 maintainers', + maintainer_email='linux-lvm@redhat.com', + url='http://sourceware.org/lvm2/', + ext_modules=[liblvm], +) |