forked from pool/python-blinker
Accepting request 1100942 from devel:languages:python
- Add no-stdpy-pyc.patch which makes Sphinx not to generate *.pyc files for the Python interpreter it uses for generating documentation. OBS-URL: https://build.opensuse.org/request/show/1100942 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-blinker?expand=0&rev=20
This commit is contained in:
18
no-stdpy-pyc.patch
Normal file
18
no-stdpy-pyc.patch
Normal file
@@ -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)
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 26 22:09:11 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- 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 <daniel.garcia@suse.com>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user