已开启
Add missing __init__.py for all subpackages during build #45
Add missing __init__.py for all subpackages during build #45
已开启
bidiudiu创建于 7月23日
共 1 个文件变更+7-1
@@ -1,7 +1,7 @@
1%global _empty_manifest_terminate_build 01%global _empty_manifest_terminate_build 0
2Name: python-Keras2Name: python-Keras
3Version: 2.10.03Version: 2.10.0
4-Release: 14+Release: 2
5Summary: Deep Learning for humans5Summary: Deep Learning for humans
6License: Apache-2.06License: Apache-2.0
7URL: https://github.com/keras-team/keras7URL: https://github.com/keras-team/keras
@@ -59,6 +59,9 @@ and is distributed under the MIT license.
59 59 
60%build60%build
61cp ./keras/tools/pip_package/setup.py .61cp ./keras/tools/pip_package/setup.py .
62+find keras -type d ! -path "keras/benchmarks*" ! -path "keras/tools*" | while read dir; do
63+ [ ! -f "$dir/__init__.py" ] && touch "$dir/__init__.py" || true
64+done
62%py3_build65%py3_build
63 66 
64%install67%install
@@ -96,6 +99,9 @@ mv %{buildroot}/doclist.lst .
96%{_docdir}/*99%{_docdir}/*
97 100 
98%changelog101%changelog
102+* Wed Jul 22 2026 bidiudiu <chenjianhu@kylinos.cn> - 2.10.0-2
103+- Add missing __init__.py for all subpackages during build
104+ 
99* Fri Oct 27 2023 renhongxun@<renhongxun@h-partners.ocm> - 2.10.0-1105* Fri Oct 27 2023 renhongxun@<renhongxun@h-partners.ocm> - 2.10.0-1
100- Revert version to 2.10.0106- Revert version to 2.10.0
101 107