]> git.sesse.net Git - vlc/commitdiff
python/setup.py: use vlc-config --version to determine version and misc. doc updates
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Fri, 9 Dec 2005 17:54:47 +0000 (17:54 +0000)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Fri, 9 Dec 2005 17:54:47 +0000 (17:54 +0000)
bindings/python/setup.py

index 9904c72064e4252ad5d85331981a41dcef576eb5..00ac966d282c55d85e6db78f66883f3a6253e3da 100644 (file)
@@ -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