forked from pool/python-pyodbc
Accepting request 730985 from home:jayvdb:py3only
- Use %python_expand in %check to allow building only a single flavour OBS-URL: https://build.opensuse.org/request/show/730985 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyodbc?expand=0&rev=15
This commit is contained in:
parent
c15a949154
commit
bded0ce313
@ -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