]> git.sesse.net Git - vlc/commitdiff
python bindings: indicate that old python bindings are deprecated.
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Tue, 8 Dec 2009 09:41:05 +0000 (10:41 +0100)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Tue, 8 Dec 2009 09:42:05 +0000 (10:42 +0100)
To build the old version, you have to pass the --force-deprecated option to the setup.py script.

bindings/python/README
bindings/python/setup.py

index b897744fcd362c5ae50e4189b616426fed6886cd..bd26c2f84b67ad4f47cf6aa9ca1d6fbc16aab216 100644 (file)
@@ -1,3 +1,19 @@
+********************************************
+             IMPORTANT NOTE
+********************************************
+
+This native version of VLC bindings is now deprecated. Please use the
+new ctypes-based bindings, which can be found in the
+bindings/python-ctypes directory of the VLC source tree.
+
+
+
+
+
+
+
+
+
 * Testing
 
 If you try to compile the bindings from a development tree, you will
index 88e18fc3591aeebee2acdff45e422b00ba11df44..4f6afc00d6db5cadb08e50d457f560648a015950 100644 (file)
@@ -1,3 +1,4 @@
+import sys
 from distutils.core import setup, Extension
 import os
 import commands
@@ -76,6 +77,22 @@ def get_ldflags():
             ldflags.append('-lvlc')
         return ldflags
 
+# Import
+if '--force-deprecated' in sys.argv:
+    sys.argv.remove('--force-deprecated')
+else:
+    print """This native version of VLC bindings is now deprecated. 
+
+Please use the new ctypes-based bindings, which can be built from the
+bindings/python-ctypes directory of the VLC source tree, or directly
+get the generated python module from
+http://www.advene.org/download/python-ctypes
+
+However, if you insist on building this deprecated version, you should
+pass the --force-deprecated option on the setup.py command line.
+"""
+    sys.exit(1)
+
 #source_files = [ 'vlc_module.c', 'vlc_mediacontrol.c',
 #                 'vlc_position.c', 'vlc_instance.c', 'vlc_input.c' ]
 source_files = [ 'vlc_module.c' ]