From 9708836b808d7a5b5a21cf14c008b13529d7ac50465248bc9238582802e627e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 15 Jul 2022 07:03:35 +0000 Subject: [PATCH] Accepting request 989257 from home:bnavigator:branches:devel:languages:python - Fix test build paths for setuptools 63 OBS-URL: https://build.opensuse.org/request/show/989257 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py3c?expand=0&rev=12 --- python-py3c.changes | 5 +++++ python-py3c.spec | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-py3c.changes b/python-py3c.changes index 43c8bd6..3ad3612 100644 --- a/python-py3c.changes +++ b/python-py3c.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 14 20:42:53 UTC 2022 - Ben Greiner + +- Fix test build paths for setuptools 63 + ------------------------------------------------------------------- Sat Mar 20 20:59:07 UTC 2021 - Ben Greiner diff --git a/python-py3c.spec b/python-py3c.spec index ca0a148..9a7da34 100644 --- a/python-py3c.spec +++ b/python-py3c.spec @@ -1,7 +1,7 @@ # # spec file for package python-py3c # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -62,26 +62,27 @@ rm -r %{buildroot}%{_includedir}/* %check pushd test # Test C extension -%python_exec setup.py build +%python_build %{python_expand # copy the lib and run the test -cp ./build/lib.linux*-%{$python_bin_suffix}/test_py3c* ./ +cp ./build/lib.linux*/test_py3c* ./ $python __main__.py -v +rm -f test_py3c*.so +rm -rf build } # Test Cpp extension -rm -f test_py3c*.so -rm -rf build* export TEST_USE_CPP="yes" -%python_exec setup.py build +%python_build %{python_expand # copy the lib and run the test -cp ./build/lib.linux*-%{$python_bin_suffix}/test_py3c* ./ +cp ./build/lib.linux*/test_py3c* ./ $python __main__.py -v +rm -f test_py3c*.so } popd %files %{python_files} %doc README.rst %license LICENSE.MIT -%{python_sitelib}/* +%{python_sitelib}/py3c-%{version}*-info %files -n py3c-devel %{_includedir}/py3c.h