1
0
mirror of https://github.com/lxc/python2-lxc.git synced 2026-02-05 09:48:07 +01:00

support building rpm with python setup.py bdist_rpm

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Dwight Engen
2014-05-07 10:11:06 -04:00
committed by Stéphane Graber
parent 9541b38038
commit 4692193f7b
4 changed files with 17 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,4 @@
MANIFEST
build/*
dist/*
*.pyc

5
README Normal file
View File

@@ -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

3
setup.cfg Normal file
View File

@@ -0,0 +1,3 @@
[bdist_rpm]
group=System Environment/Libraries
requires=lxc-libs

View File

@@ -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])