Accepting request 920992 from home:bnavigator:branches:devel:languages:python:jupyter
- Revert and clarify some specfile changes: * fix kernelspec install for primary flavor * BuildRequires debugpy is sufficiently declared once OBS-URL: https://build.opensuse.org/request/show/920992 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=39
This commit is contained in:
@@ -3,6 +3,13 @@ Wed Sep 22 15:23:38 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Deduplicate files in _jupyter_kernel_dir.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 22 15:15:06 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Revert and clarify some specfile changes:
|
||||
* fix kernelspec install for primary flavor
|
||||
* BuildRequires debugpy is sufficiently declared once
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 15 05:29:16 UTC 2021 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
|
@@ -28,7 +28,6 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/ipython/ipykernel
|
||||
Source: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module debugpy}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: hicolor-icon-theme
|
||||
@@ -92,6 +91,9 @@ rm ipykernel/tests/test_pickleutil.py
|
||||
%install
|
||||
%python_install
|
||||
%if 0%{?suse_version} >= 1550
|
||||
# use the symlink for the default python3 flavor, which was installed during the install but used python3.X name
|
||||
# from the primary flavor.
|
||||
sed -i "s|$(readlink -f %{__python3})|%{__python3}|" %{buildroot}%{_jupyter_kernel_dir}/python3/kernel.json
|
||||
%{python_expand # install kernelspecs for each flavor
|
||||
PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
$python -m ipykernel install \
|
||||
@@ -99,8 +101,6 @@ $python -m ipykernel install \
|
||||
--name python%{$python_bin_suffix} \
|
||||
--display-name 'Python %{$python_bin_suffix} (ipykernel)'
|
||||
}
|
||||
# use the symlink for the default python3 flavor
|
||||
sed -i "s|$(readlink -f python3)|python3|" %{buildroot}%{_jupyter_kernel_dir}/python3/kernel.json
|
||||
%endif
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%fdupes %{buildroot}%{_jupyter_kernel_dir}
|
||||
|
Reference in New Issue
Block a user