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():
vlcconfig="sh %s" % 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():
vlcconfig=get_vlcconfig()
if vlcconfig is None:
......@@ -43,8 +51,10 @@ vlclocal = Extension('vlc',
)
setup (name = 'MediaControl',
version = '0.8.2-1',
version = get_vlc_version(),
scripts = [ 'vlcdebug.py' ],
keywords = [ 'vlc', 'video' ],
license = "GPL",
description = """VLC bindings for python.
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,
the module provides a Object type, which gives a low-level access to
the vlc objects and their variables.
Documentation can be found on the VLC wiki :
http://wiki.videolan.org/index.php/PythonBinding
Example session:
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