[liblinear] 51/123: Restore Python bindings in separate namespace
Christian Kastner
chrisk-guest at moszumanska.debian.org
Tue Aug 26 03:42:08 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 a06b01083254017ebf8ebb5dfb410690ef56f497
Author: Christian Kastner <debian at kvr.at>
Date: Thu Sep 16 21:54:20 2010 +0200
Restore Python bindings in separate namespace
The current package in the archive has this feature, so we'll keep it.
This reverts commit f4cd93df7afa5162d9431b083e8bd647016ebfb4.
---
...Move-Python-bindings-to-package-liblinear.patch | 26 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/python-liblinear.README.Debian | 20 +++++++++++++++++
debian/python-liblinear.install | 4 ++--
4 files changed, 49 insertions(+), 2 deletions(-)
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
diff --git a/debian/python-liblinear.install b/debian/python-liblinear.install
index ab76e07..4fbb7a2 100644
--- a/debian/python-liblinear.install
+++ b/debian/python-liblinear.install
@@ -1,2 +1,2 @@
-python/linear.py usr/share/pyshared
-python/linearutil.py usr/share/pyshared
+python/linear.py usr/share/pyshared/liblinear
+python/linearutil.py usr/share/pyshared/liblinear
--
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