diff --git a/no-stdpy-pyc.patch b/no-stdpy-pyc.patch new file mode 100644 index 0000000..bf4ca6d --- /dev/null +++ b/no-stdpy-pyc.patch @@ -0,0 +1,18 @@ +--- + docs/conf.py | 5 +++++ + 1 file changed, 5 insertions(+) + +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -1,6 +1,11 @@ ++import sys ++ + from pallets_sphinx_themes import get_version + from pallets_sphinx_themes import ProjectLink + ++# https://stackoverflow.com/q/34025113/164233 ++sys.dont_write_bytecode = True ++ + project = "Blinker" + copyright = "2010 Jason Kirtland" + release, version = get_version("blinker", placeholder=None) diff --git a/python-blinker.changes b/python-blinker.changes index 3827f47..ac39c4f 100644 --- a/python-blinker.changes +++ b/python-blinker.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jul 26 22:09:11 UTC 2023 - Matej Cepl + +- Add no-stdpy-pyc.patch which makes Sphinx not to generate + *.pyc files for the Python interpreter it uses for generating + documentation. + ------------------------------------------------------------------- Tue May 9 06:25:49 UTC 2023 - Daniel Garcia diff --git a/python-blinker.spec b/python-blinker.spec index 29be81f..ff89214 100644 --- a/python-blinker.spec +++ b/python-blinker.spec @@ -25,6 +25,9 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/pallets-eco/blinker/ Source: https://files.pythonhosted.org/packages/source/b/blinker/blinker-%{version}.tar.gz +# PATCH-FIX-OPENSUSE no-stdpy-pyc.patch bsc#[0-9]+ mcepl@suse.com +# Persuade Sphinx not to generate *.pyc files +Patch0: no-stdpy-pyc.patch BuildRequires: %{python_module Pallets-Sphinx-Themes} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pip}