From 4692193f7b336bdb28d6114c5cd96ed04f0ab07f Mon Sep 17 00:00:00 2001 From: Dwight Engen Date: Wed, 7 May 2014 10:11:06 -0400 Subject: [PATCH] support building rpm with python setup.py bdist_rpm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- .gitignore | 2 ++ README | 5 +++++ setup.cfg | 3 +++ setup.py | 9 +++++++-- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 README create mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index a0114d3..c3be7ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ +MANIFEST build/* +dist/* *.pyc diff --git a/README b/README new file mode 100644 index 0000000..7e0b49e --- /dev/null +++ b/README @@ -0,0 +1,5 @@ +These are lxc bindings for python2. + +Build: python setup.py build +Install: python setup.py install +Build rpm: python setup.py bdist_rpm diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..74b012a --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[bdist_rpm] +group=System Environment/Libraries +requires=lxc-libs diff --git a/setup.py b/setup.py index b2cfefe..4e19fdc 100644 --- a/setup.py +++ b/setup.py @@ -25,9 +25,14 @@ from distutils.core import setup, Extension module = Extension('_lxc', sources=['lxc.c'], libraries=['lxc']) -setup(name='_lxc', +setup(name='lxc-python2', version='0.1', - description='LXC', + description='Python2 bindings for LXC', + long_description='The lxc-python2 package contains lxc bindings for python2', + license='LGPLv2+', + maintainer='lxc', + maintainer_email='lxc-devel@lists.linuxcontainers.org', + url='git://github.com/lxc/python2-lxc', packages=['lxc'], package_dir={'lxc': 'lxc'}, ext_modules=[module])