From 46b2ce6bf5dbdbf2613feaf90294f6246173b38d775bf4f2d4a5cffba6aa6b64 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 2 Nov 2022 14:57:56 +0000 Subject: [PATCH] Allow build on SLE-15 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=76 --- python-docutils.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-docutils.spec b/python-docutils.spec index 47c2575..23ccc19 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -68,6 +68,9 @@ for i in tools/rst*; do mv "$i" "${i/.py}"; done sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py find . -name \*.mp4 -print -exec chmod -x '{}' \; +# Actually seems to work with Python 3.6 +sed -i -e '/python_requires/s/7/6/' setup.py + %build %pyproject_wheel