From ac19c3bd53cb8eb7a7d157a5574d9fe44e8ee7c3 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 30 Sep 2019 21:44:16 +0200 Subject: [PATCH] - added use_setuptools patch: force use of setuptools to autogenerate pythonegg dependencies; release 2 --- python-ipykernel-use_setuptools.patch | 11 +++++++++++ python-ipykernel.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 python-ipykernel-use_setuptools.patch diff --git a/python-ipykernel-use_setuptools.patch b/python-ipykernel-use_setuptools.patch new file mode 100644 index 0000000..ddbd848 --- /dev/null +++ b/python-ipykernel-use_setuptools.patch @@ -0,0 +1,11 @@ +--- ipykernel-4.10.1/setup.py.orig 2019-08-08 23:42:36.000000000 +0200 ++++ ipykernel-4.10.1/setup.py 2019-09-30 21:25:15.196203718 +0200 +@@ -76,7 +76,7 @@ + ], + ) + +-if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv): ++if True: + import setuptools + + setuptools_args = {} diff --git a/python-ipykernel.spec b/python-ipykernel.spec index 867b7c2..702fa7a 100644 --- a/python-ipykernel.spec +++ b/python-ipykernel.spec @@ -9,12 +9,13 @@ Summary: IPython kernel for Jupyter Summary(pl.UTF-8): Jądro IPythona dla Jupytera Name: python-ipykernel Version: 4.10.1 -Release: 1 +Release: 2 License: BSD Group: Libraries/Python #Source0Download: https://pypi.org/simple/ipykernel/ Source0: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz # Source0-md5: 23871bb7da2907749cb65a9446c9e637 +Patch0: %{name}-use_setuptools.patch URL: https://pypi.org/project/ipykernel/ %if %{with python2} BuildRequires: python-modules >= 1:2.7 @@ -85,6 +86,7 @@ Dokumentacja API modułu Pythona ipykernel. %prep %setup -q -n ipykernel-%{version} +%patch0 -p1 %build %if %{with python2} -- 2.43.0