[vlc-devel] commit: python-ctypes: define setup.py ( based on a contribution by Martin Muellenhaupt <mmuellen at gmx.de>) ( Olivier Aubert )
git version control
git at videolan.org
Mon Aug 10 00:35:26 CEST 2009
vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Aug 10 00:31:33 2009 +0200| [33043ba3c74dac44849ecb9e7b22ed68b71b266a] | committer: Olivier Aubert
python-ctypes: define setup.py (based on a contribution by Martin Muellenhaupt <mmuellen at gmx.de>)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33043ba3c74dac44849ecb9e7b22ed68b71b266a
---
bindings/python-ctypes/setup.py | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/bindings/python-ctypes/setup.py b/bindings/python-ctypes/setup.py
new file mode 100644
index 0000000..0f04516
--- /dev/null
+++ b/bindings/python-ctypes/setup.py
@@ -0,0 +1,32 @@
+from distutils.core import setup
+import sys
+import os
+import generate
+
+vlc_include_path = os.path.join("..","..","include","vlc")
+if not os.path.exists(vlc_include_path):
+ raise Exception("This script should be run from a VLC tree.")
+
+files = [ os.path.join(vlc_include_path, filename)
+ for filename in os.listdir(vlc_include_path) ]
+
+generate.process('vlc.py', files)
+
+setup(name='python-vlc',
+ version = '1.1.0',
+ author='Olivier Aubert',
+ author_email='olivier.aubert at liris.cnrs.fr',
+ url='http://wiki.videolan.org/PythonBinding',
+ py_modules=['vlc'],
+ keywords = [ 'vlc', 'video' ],
+ license = "GPL",
+ description = "VLC bindings for python.",
+ long_description = """VLC bindings for python.
+
+This module provides ctypes-based bindings for the native libvlc API
+(see http://wiki.videolan.org/ExternalAPI) and the MediaControl API
+(see http://wiki.videolan.org/PythonBinding) of the VLC video player.
+
+It is automatically generated from the include files.
+"""
+ )
More information about the vlc-devel
mailing list