From 7bfd8546f3c77b61d07d1640120635d65c1ce2fc8986bc8cf0ca53c9f932ef6d Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 25 Sep 2024 12:50:59 +0000 Subject: [PATCH] - Always install the python3 kernelspec. The command replacement was inactive since v6.13. A plain python command is transformed correctly by the calling interpreter. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=111 --- python-ipykernel.changes | 7 +++++++ python-ipykernel.spec | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/python-ipykernel.changes b/python-ipykernel.changes index 3cd46a5..d56795c 100644 --- a/python-ipykernel.changes +++ b/python-ipykernel.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Sep 25 12:42:14 UTC 2024 - Ben Greiner + +- Always install the python3 kernelspec. The command replacement + was inactive since v6.13. A plain python command is transformed + correctly by the calling interpreter. + ------------------------------------------------------------------- Fri Aug 30 09:27:37 UTC 2024 - Ben Greiner diff --git a/python-ipykernel.spec b/python-ipykernel.spec index 1221503..b612c6e 100644 --- a/python-ipykernel.spec +++ b/python-ipykernel.spec @@ -96,9 +96,6 @@ sed -i -e 's/, "--color=yes"//' pyproject.toml %install %pyproject_install -# 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 \ @@ -127,8 +124,6 @@ donttest="$donttest or test_do_apply" %{python_sitelib}/ipykernel-%{version}*-info %pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.pyc %{_jupyter_kernel_dir}/python%{python_bin_suffix} -%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" %{_jupyter_kernel_dir}/python3 -%endif %changelog