forked from pool/python-pyodbc
Accepting request 731160 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/731160 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyodbc?expand=0&rev=6
This commit is contained in:
commit
9756ab9513
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 14 15:34:06 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Use %python_expand in %check to allow building only a single
|
||||
flavour
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 5 18:35:48 UTC 2019 - Dirk Hartmann <monex@liquid-co.de>
|
||||
|
||||
|
@ -43,6 +43,8 @@ even more.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyodbc-%{version}
|
||||
mv tests2 tests-%{python2_bin_suffix}
|
||||
mv tests3 tests-%{python3_bin_suffix}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -52,8 +54,9 @@ even more.
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
PYTHONPATH=%{buildroot}%{python3_sitearch} python3 tests3/sqlitetests.py -v "Driver=SQLITE3;Database=sqlite.db"
|
||||
PYTHONPATH=%{buildroot}%{python2_sitearch} python2 tests2/sqlitetests.py -v "Driver=SQLITE3;Database=sqlite.db"
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
$python tests-%{$python_bin_suffix}/sqlitetests.py -v "Driver=SQLITE3;Database=sqlite.db"
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitearch}/*
|
||||
|
Loading…
Reference in New Issue
Block a user