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:
committed by
Stéphane Graber
parent
9541b38038
commit
4692193f7b
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
MANIFEST
|
||||
build/*
|
||||
dist/*
|
||||
*.pyc
|
||||
|
||||
5
README
Normal file
5
README
Normal 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
3
setup.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
[bdist_rpm]
|
||||
group=System Environment/Libraries
|
||||
requires=lxc-libs
|
||||
9
setup.py
9
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])
|
||||
|
||||
Reference in New Issue
Block a user