[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[pysqlite 2.2.0] how to run tests in %check section?


I wanted to update python-sqlite2 to version 2.2.0 but I cannot run tests in %check section. It always fails with this message:

Wykonywanie(%check): /bin/sh -e /var/tmp/rpm-tmp.54371
+ umask 022
+ cd /home/rpm-build/rpmbuild/BUILD
+ cd pysqlite-2.2.0
+ PYTHONPATH=/var/tmp/python-sqlite2-2.2.0-1-root-rpm-build/usr/lib/python2.4/site-packages
+ /usr/bin/python -c 'from pysqlite2.test import test; test()'
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "pysqlite2/test/__init__.py", line 25, in ?
from pysqlite2.test import dbapi, types, userfunctions, factory, transactions,\
  File "pysqlite2/test/dbapi.py", line 26, in ?
    import pysqlite2.dbapi2 as sqlite
  File "pysqlite2/dbapi2.py", line 32, in ?
    from pysqlite2._sqlite import *
ImportError: No module named _sqlite

I don't understand it: I run this command in shell: "PYTHONPATH=/var/tmp/python-sqlite2-2.2.0-1-root-rpm-build/usr/lib/python2.4/site-packages /usr/bin/python -c 'from pysqlite2.test import test; test()'" and it works fine. This also works with previous pysqlite2 releases :/

Here are links to the spec file and srpm:

Any help would be appreciated.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]