mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-30 06:26:11 +03:00
ee3cfa4184
Use configure --enable-python_bindings to generate them. Note that the Makefiles do not yet control the owner or permissions of the two new files on installation.
36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
#
|
|
# 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],
|
|
)
|