From 21ded1e2a26efad1eb3ff5d5fbf8a21b07c1bdd315406274423646e6122fc054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 9 Dec 2020 15:27:44 +0000 Subject: [PATCH 1/2] Accepting request 854285 from home:bnavigator:branches:devel:languages:python - Don't pip install testpkg into user sitelib * it masks problems with reused local builds * was only single flavor OBS-URL: https://build.opensuse.org/request/show/854285 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=33 --- python-cloudpickle.changes | 7 +++++++ python-cloudpickle.spec | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-cloudpickle.changes b/python-cloudpickle.changes index c09cb73..ab17537 100644 --- a/python-cloudpickle.changes +++ b/python-cloudpickle.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Dec 9 14:43:55 UTC 2020 - Benjamin Greiner + +- Don't pip install testpkg into user sitelib + * it masks problems with reused local builds + * was only single flavor + ------------------------------------------------------------------- Wed Dec 2 15:00:54 UTC 2020 - Markéta Machová diff --git a/python-cloudpickle.spec b/python-cloudpickle.spec index c70126d..945c207 100644 --- a/python-cloudpickle.spec +++ b/python-cloudpickle.spec @@ -72,8 +72,9 @@ functions and classes defined interactively in the __main__ module. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -pip install ./tests/cloudpickle_testpkg -export PYTHONPATH='.:tests' +# make local source and testpkg importable +export PYTHONPATH=':./tests/cloudpickle_testpkg' +# -s: tests need direct print %pytest -s %files %{python_files} From 1e27798aa10d0ece4f8d5593f6d5fa91ae1eea13150fc01140bf30b996a126fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 9 Dec 2020 15:28:19 +0000 Subject: [PATCH 2/2] pip not needed anymore OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=34 --- python-cloudpickle.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-cloudpickle.spec b/python-cloudpickle.spec index 945c207..bd9c3f7 100644 --- a/python-cloudpickle.spec +++ b/python-cloudpickle.spec @@ -28,7 +28,6 @@ Source: https://files.pythonhosted.org/packages/source/c/cloudpickle/clo BuildRequires: %{python_module curses} BuildRequires: %{python_module mock} BuildRequires: %{python_module numpy >= 1.8.5} -BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy}