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

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

 



Hi!

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:
http://fedora.pl/~gajownik/python-sqlite2.spec
http://fedora.pl/~gajownik/python-sqlite2-2.2.0-1.src.rpm

Any help would be appreciated.

--

  ^_*

--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux