Accepting request 789234 from devel:languages:python:jupyter
- Fix build without python2 OBS-URL: https://build.opensuse.org/request/show/789234 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter-core?expand=0&rev=4
This commit is contained in:
commit
7a93ec1e06
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 28 07:39:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 17 07:20:32 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Tue Mar 17 07:20:32 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without python2
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
Name: python-jupyter-core%{psuffix}
|
Name: python-jupyter-core%{psuffix}
|
||||||
@ -56,8 +57,10 @@ Obsoletes: %{oldpython}-jupyter_core < %{version}
|
|||||||
BuildRequires: %{python_module jupyter-core}
|
BuildRequires: %{python_module jupyter-core}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
%if %{with python2}
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user