[liblinear] 32/123: Added patch to move Python bindings to their own package

Christian Kastner chrisk-guest at moszumanska.debian.org
Tue Aug 26 03:42:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch master
in repository liblinear.

commit 6fc7672700a87f58d3978416ab30497e05275391
Author: Christian Kastner <debian at kvr.at>
Date:   Fri Jul 9 21:00:33 2010 +0200

    Added patch to move Python bindings to their own package
---
 ...Move-Python-bindings-to-package-liblinear.patch | 26 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/python-liblinear.README.Debian              | 20 +++++++++++++++++
 3 files changed, 47 insertions(+)

diff --git a/debian/patches/0002-Move-Python-bindings-to-package-liblinear.patch b/debian/patches/0002-Move-Python-bindings-to-package-liblinear.patch
new file mode 100644
index 0000000..cedb2f7
--- /dev/null
+++ b/debian/patches/0002-Move-Python-bindings-to-package-liblinear.patch
@@ -0,0 +1,26 @@
+From: Christian Kastner <debian at kvr.at>
+Date: Fri, 9 Jul 2010 20:30:30 +0200
+Subject: [PATCH] Move Python bindings to package liblinear
+
+Upstream ships its Python bindings with very generic names. To avoid possible
+name collisions, they have been move to a package "liblinear".
+
+Forwarded: no
+Last-Update: 2010-07-09
+---
+ python/linearutil.py |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/python/linearutil.py b/python/linearutil.py
+index 06cd1c3..77b510e 100644
+--- a/python/linearutil.py
++++ b/python/linearutil.py
+@@ -1,6 +1,6 @@
+ #!/usr/bin/env python
+ 
+-from linear import *
++from liblinear.linear import *
+ 
+ def svm_read_problem(data_file_name):
+ 	"""
+-- 
diff --git a/debian/patches/series b/debian/patches/series
index 72e9037..5187293 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Properly-build-shared-and-static-libraries-programs.patch
+0002-Move-Python-bindings-to-package-liblinear.patch
diff --git a/debian/python-liblinear.README.Debian b/debian/python-liblinear.README.Debian
new file mode 100644
index 0000000..863c798
--- /dev/null
+++ b/debian/python-liblinear.README.Debian
@@ -0,0 +1,20 @@
+python-liblinear for Debian
+---------------------------
+
+IMPORTANT: Note that the Python bindings have been moved to the package
+"liblinear". This has been done to avoid possible name collisions, as "linear"
+is very generic.
+
+So, wherever the documentation (especially upstream's README) instructs you to
+use one of,
+
+    import linear
+    import linearutil
+
+use
+    import liblinear.linear
+    import liblinear.linearutil
+
+instead.
+
+ -- Christian Kastner <debian at kvr.at>  Fri, 09 Jul 2010 20:50:11 +0200

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/liblinear.git



More information about the debian-science-commits mailing list