forked from pool/python-pybind11
Accepting request 821409 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/821409 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 17 01:00:06 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Also expand generation of test binaries for Python 2 and 3,
|
||||
fixes Leap 15.x builds where Python 2 is still built.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 6 14:56:54 UTC 2020 - Christian Goll <cgoll@suse.com>
|
||||
|
||||
|
@@ -64,21 +64,25 @@ This package contains files for developing applications using pybind11.
|
||||
%python_build
|
||||
# calling cmake to install header to right location and
|
||||
# generate cmake include files
|
||||
%{python_expand pushd .
|
||||
%cmake \
|
||||
-DPYBIND11_INSTALL=ON \
|
||||
-DPYBIND11_TEST=ON \
|
||||
-DPYTHON_EXECUTABLE:FILEPATH=%{_bindir}/$python \
|
||||
|
||||
%cmake_build
|
||||
popd
|
||||
}
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%cmake_install
|
||||
%python_expand %cmake_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# removing duplicated header files
|
||||
rm -rfv %{buildroot}%{_includedir}/python2.*/pybind11/
|
||||
rm -rfv %{buildroot}%{_includedir}/python3.*/pybind11
|
||||
|
||||
#%%check
|
||||
%check
|
||||
# test fails as python3-widget is not in distribuion
|
||||
rm tests/test_embed/test_interpreter.py
|
||||
%pytest
|
||||
|
Reference in New Issue
Block a user