[Python-modules-commits] r8485 - in packages/python-nltk/trunk/debian (4 files)

sharky at users.alioth.debian.org sharky at users.alioth.debian.org
Fri May 15 08:04:57 UTC 2009


    Date: Friday, May 15, 2009 @ 08:04:56
  Author: sharky
Revision: 8485

remove references to nltk.jar

Added:
  packages/python-nltk/trunk/debian/patches/03_remove_jar.patch
Modified:
  packages/python-nltk/trunk/debian/README.Debian
  packages/python-nltk/trunk/debian/changelog
  packages/python-nltk/trunk/debian/rules

Modified: packages/python-nltk/trunk/debian/README.Debian
===================================================================
--- packages/python-nltk/trunk/debian/README.Debian	2009-05-15 07:38:33 UTC (rev 8484)
+++ packages/python-nltk/trunk/debian/README.Debian	2009-05-15 08:04:56 UTC (rev 8485)
@@ -1,6 +1,9 @@
 NLTK for Debian
 ---------------
 
+Downloading corpora
+-------------------
+
 For most tasks, the Natural Language Toolkit depends on corpora which need
 to be downloaded. You can select and download the corpora you want to use
 by launching the Python interpreter and running:
@@ -8,4 +11,13 @@
   >>> import nltk
   >>> nltk.download()
 
+Removed interfaces
+------------------
+
+The following interfaces are removed from the Debian packages:
+
+ * nltk_contrib.triger : Python failure
+ * nltk.classify.mallet : depends on nltk.jar whose source is not provided
+ * nltk.tag.crf : depends on nltk.jar whose source is not provided
+
  -- Jeremy Lainé <jeremy.laine at m4x.org>  Fri, 15 May 2009 09:27:41 +0200

Modified: packages/python-nltk/trunk/debian/changelog
===================================================================
--- packages/python-nltk/trunk/debian/changelog	2009-05-15 07:38:33 UTC (rev 8484)
+++ packages/python-nltk/trunk/debian/changelog	2009-05-15 08:04:56 UTC (rev 8485)
@@ -1,5 +1,6 @@
-python-nltk (0.9.9-1) experimental; urgency=low
+python-nltk (0.9.9.dfsg-1) experimental; urgency=low
 
-  * Initial upload to Debian (Closes: #279422)
+  * Initial upload to Debian (Closes: #279422).
+  * Remove nltk/nltk.jar, source code is not provided.
 
  -- Jeremy Lainé <jeremy.laine at m4x.org>  Fri, 15 May 2009 09:27:41 +0200

Added: packages/python-nltk/trunk/debian/patches/03_remove_jar.patch
===================================================================
--- packages/python-nltk/trunk/debian/patches/03_remove_jar.patch	                        (rev 0)
+++ packages/python-nltk/trunk/debian/patches/03_remove_jar.patch	2009-05-15 08:04:56 UTC (rev 8485)
@@ -0,0 +1,13 @@
+Index: nltk-0.9.9/setup.py
+===================================================================
+--- nltk-0.9.9.orig/setup.py	2009-05-15 09:46:01.000000000 +0200
++++ nltk-0.9.9/setup.py	2009-05-15 09:46:11.000000000 +0200
+@@ -31,7 +31,7 @@
+     
+     #############################################
+     ## Package Data
+-    package_data = {'nltk': ['nltk.jar', 'test/*.doctest']},
++    package_data = {'nltk': ['test/*.doctest']},
+     
+     #############################################
+     ## Package List

Modified: packages/python-nltk/trunk/debian/rules
===================================================================
--- packages/python-nltk/trunk/debian/rules	2009-05-15 07:38:33 UTC (rev 8484)
+++ packages/python-nltk/trunk/debian/rules	2009-05-15 08:04:56 UTC (rev 8485)
@@ -6,3 +6,9 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 DEB_INSTALL_DOCS_ALL = README.txt
+
+install/python-nltk::
+	# remove files that depend on nltk.jar
+	rm $(DEB_DESTDIR)usr/lib/python2.*/site-packages/nltk/classify/mallet.py
+	rm $(DEB_DESTDIR)usr/lib/python2.*/site-packages/nltk/tag/crf.py
+




More information about the Python-modules-commits mailing list