Commit f12e7ed0 authored by Olivier Aubert's avatar Olivier Aubert

python/setup.py: use vlc-config --version to determine version and misc. doc updates

parent aeb0b482
...@@ -15,6 +15,14 @@ def get_vlcconfig(): ...@@ -15,6 +15,14 @@ def get_vlcconfig():
vlcconfig="sh %s" % vlcconfig vlcconfig="sh %s" % vlcconfig
return vlcconfig return vlcconfig
def get_vlc_version():
vlcconfig=get_vlcconfig()
if vlcconfig is None:
return ""
else:
version=os.popen('%s --version' % vlcconfig, 'r').readline().strip()
return version
def get_cflags(): def get_cflags():
vlcconfig=get_vlcconfig() vlcconfig=get_vlcconfig()
if vlcconfig is None: if vlcconfig is None:
...@@ -43,8 +51,10 @@ vlclocal = Extension('vlc', ...@@ -43,8 +51,10 @@ vlclocal = Extension('vlc',
) )
setup (name = 'MediaControl', setup (name = 'MediaControl',
version = '0.8.2-1', version = get_vlc_version(),
scripts = [ 'vlcdebug.py' ], scripts = [ 'vlcdebug.py' ],
keywords = [ 'vlc', 'video' ],
license = "GPL",
description = """VLC bindings for python. description = """VLC bindings for python.
This module provides a MediaControl object, which implements an API This module provides a MediaControl object, which implements an API
...@@ -52,6 +62,9 @@ inspired from the OMG Audio/Video Stream 1.0 specification. Moreover, ...@@ -52,6 +62,9 @@ inspired from the OMG Audio/Video Stream 1.0 specification. Moreover,
the module provides a Object type, which gives a low-level access to the module provides a Object type, which gives a low-level access to
the vlc objects and their variables. the vlc objects and their variables.
Documentation can be found on the VLC wiki :
http://wiki.videolan.org/index.php/PythonBinding
Example session: Example session:
import vlc import vlc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment