1
0

Accepting request 785566 from devel:languages:python

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/785566
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cloudpickle?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2020-03-26 23:25:22 +00:00 committed by Git OBS Bridge
commit b84e394272
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 16 10:25:19 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Thu Dec 19 11:53:07 CET 2019 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-cloudpickle
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,12 +17,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-cloudpickle
Version: 1.2.2
Release: 0
Summary: Extended pickling support for Python objects
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/cloudpipe/cloudpickle
Source: https://files.pythonhosted.org/packages/source/c/cloudpickle/cloudpickle-%{version}.tar.gz
BuildRequires: %{python_module curses}
@ -35,13 +35,18 @@ BuildRequires: %{python_module scipy}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tornado}
BuildRequires: fdupes
BuildRequires: python-futures
BuildRequires: python-rpm-macros
Requires: python-curses
Requires: python-numpy >= 1.8.2
Requires: python-scipy
Requires: python-tornado
BuildArch: noarch
%if %{with python2}
BuildRequires: python-futures
%endif
%ifpython2
Requires: python-futures
%endif
%python_subpackages
%description