python3-parsy: Create __pycache__ directories and their contents in SLES *too*:
authorDevrim Gunduz <devrim@gunduz.org>
Sat, 25 Oct 2025 10:24:01 +0000 (13:24 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Sat, 25 Oct 2025 10:24:01 +0000 (13:24 +0300)
rpm/redhat/main/common/python3-parsy/main/python3-parsy.spec

index d48addc9f75c7377d1b861d5de2d2de7eec9e5f8..d7ddadae001760190041cd461f16c677e9be2092 100644 (file)
@@ -51,6 +51,11 @@ documentation and it doesn't say things like that!
 %install
 %{__ospython} setup.py install --no-compile --root %{buildroot}
 
+# Create __pycache__ directories and their contents in SLES *too*:
+%if 0%{?suse_version}
+%py3_compile %{buildroot}%{python3_sitelib}
+%endif
+
 %files
 %doc README.rst
 %license LICENSE