linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Andy Grover <agrover@redhat.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] [PATCH 3/6] python-lvm: setup.py
Date: Fri, 14 Sep 2012 10:54:41 -0700	[thread overview]
Message-ID: <1347645284-13738-4-git-send-email-agrover@redhat.com> (raw)
In-Reply-To: <1347645284-13738-1-git-send-email-agrover@redhat.com>

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

  parent reply	other threads:[~2012-09-14 17:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 17:54 [linux-lvm] [PATCH 0/6] Integrate python-lvm into lvm2 Andy Grover
2012-09-14 17:54 ` [linux-lvm] [PATCH 1/6] python-lvm: initial checkin Andy Grover
2012-09-14 17:54 ` [linux-lvm] [PATCH 2/6] python-lvm: A start at a python-lvm test framework Andy Grover
2012-09-14 17:54 ` Andy Grover [this message]
2012-09-14 17:54 ` [linux-lvm] [PATCH 4/6] python-lvm: liblvm/python/Makefile.in Andy Grover
2012-09-14 17:54 ` [linux-lvm] [PATCH 5/6] python-lvm: configure.in changes Andy Grover
2012-09-14 17:54 ` [linux-lvm] [PATCH 6/6] python-lvm: Other Makefile.in changes Andy Grover

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1347645284-13738-4-git-send-email-agrover@redhat.com \
    --to=agrover@redhat.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).