2
0
mirror of git://github.com/lxc/lxc synced 2025-09-08 15:49:35 +00:00

Add python-lxc based on the new liblxc API.

This adds a basic python binding done in C and a python overlay to
extend some features and provide a user-friendlier API.

This python API only supports python 3.x and was tested with >= 3.2.

It's disabled by default in configure and can be turned on by using
--enable-python.

A basic example of the API can be found in src/python-lxc/test.py.
More documentation and examples will be added soon.
This commit is contained in:
Stéphane Graber
2012-08-27 19:04:43 -04:00
parent 7a44c8b447
commit be2e4e54da
7 changed files with 1023 additions and 1 deletions

10
src/python-lxc/setup.py Normal file
View File

@@ -0,0 +1,10 @@
from distutils.core import setup, Extension
module = Extension('_lxc', sources = ['lxc.c'], libraries = ['lxc'])
setup (name = '_lxc',
version = '0.1',
description = 'LXC',
packages = ['lxc'],
package_dir = {'lxc':'lxc'},
ext_modules = [module])