已开启
add missing __init__.py for subpackages during build to resolve ModuleNotFoundError #44
add missing __init__.py for subpackages during build to resolve ModuleNotFoundError #44
已开启
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.12.03Version: 2.12.0
4-Release: 44+Release: 5
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
@@ -63,6 +63,9 @@ and is distributed under the MIT license.
63 63 
64%build64%build
65cp ./keras/tools/pip_package/setup.py .65cp ./keras/tools/pip_package/setup.py .
66+find keras -type d ! -path "keras/benchmarks*" ! -path "keras/tools*" | while read dir; do
67+ [ ! -f "$dir/__init__.py" ] && touch "$dir/__init__.py" || true
68+done
66%py3_build69%py3_build
67 70 
68%install71%install
@@ -100,6 +103,9 @@ mv %{buildroot}/doclist.lst .
100%{_docdir}/*103%{_docdir}/*
101 104 
102%changelog105%changelog
106+* Thu Jul 23 2026 chenjianhu <chenjianhu@kylinos.cn> - 2.12.0-5
107+- Add missing __init__.py for all subpackages during build
108+ 
103* Wed Jul 22 2026 lizhengde <lizhengde@xfusion.com> - 2.12.0-4109* Wed Jul 22 2026 lizhengde <lizhengde@xfusion.com> - 2.12.0-4
104- Type:CVE110- Type:CVE
105- CVE:CVE-2026-11816111- CVE:CVE-2026-11816