Package: simpleparse
Version: 2.1.0a1-3
Severity: important
Tags: patch
User: [email protected]
Usertags: python2.6 ftbfs

Hello,

Your package FTBFS when built with python-all-dev from experimental.
Here is tail of my pbuiler log:

for PY in python2.5 python2.6; do \
                        $PY debian/runtests.py debian/tmp || exit 1 ; \
        done
Unable to test ISO dates, no mxDateTime module
......................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 438 tests in 2.712s

OK
     None            : Word : '['                     : jne=+0 : je=+1
     'CHARBRACE'     : Word : ']'                     : jne=+1 : je=+1
     'CHARDASH'      : Word : '-'                     : jne=+1 : je=+1
     None            : SubTable : <table>             : jne=+2 : je=+1
     None            : EOF : 1                        : jne=-1 : je=+1
     'CHARDASH'      : Word : '-'                     : jne=+1 : je=+1
     None            : Word : ']'                     : jne=+0 : je=+1

Traceback (most recent call last):
   File "debian/runtests.py", line 15, in <module>
     execfile("tests/test.py")
   File "tests/test.py", line 2, in <module>
     import mx_test, test_objectgenerator, test_simpleparsegrammar
   File "tests/mx_test.py", line 1, in <module>
     import mx_low, mx_flag, mx_high, mx_special, mx_recursive
   File "tests/mx_low.py", line 3, in <module>
     from simpleparse.stt.TextTools import *
ImportError: No module named simpleparse.stt.TextTools

The attached patch fixes this problem.

--
Jakub Wilk
diff --git a/debian/runtests.py b/debian/runtests.py
--- a/debian/runtests.py
+++ b/debian/runtests.py
@@ -4,7 +4,7 @@
 from site import addsitedir
 
 root = sys.argv.pop(1)
-site_packages = get_python_lib()
+site_packages = get_python_lib().replace('dist-packages', 'site-packages')
 
 _path = sys.path[:]
 sys.path[:] = []
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to