[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] [PATCH 3/6] python-lvm: setup.py



python-lvm uses distutils for build/install. This is the configuration
file distutils uses to build the library. It includes metadata about the
module as well.

Signed-off-by: Andy Grover <agrover redhat com>
---
 liblvm/python/setup.py |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 liblvm/python/setup.py

diff --git a/liblvm/python/setup.py b/liblvm/python/setup.py
new file mode 100644
index 0000000..a54ebef
--- /dev/null
+++ b/liblvm/python/setup.py
@@ -0,0 +1,17 @@
+from distutils.core import setup, Extension
+import os
+
+liblvm = Extension('lvm',
+                    sources = ['liblvm.c'],
+                    libraries= ['lvm2app'],
+                    library_dirs= ['../'])
+
+setup (name='lvm',
+       version=os.environ['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],
+)
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]