已开启
add missing __init__.py for subpackages during build to resolve ModuleNotFoundError #44
bidiudiu创建于 7月23日
add missing __init__.py for subpackages during build to resolve ModuleNotFoundError #44
已开启
共 1 个文件变更+7-1
| @@ -1,7 +1,7 @@ | |||
| 1 | %global _empty_manifest_terminate_build 0 | 1 | %global _empty_manifest_terminate_build 0 |
| 2 | Name: python-Keras | 2 | Name: python-Keras |
| 3 | Version: 2.12.0 | 3 | Version: 2.12.0 |
| 4 | -Release: 4 | 4 | +Release: 5 |
| 5 | Summary: Deep Learning for humans | 5 | Summary: Deep Learning for humans |
| 6 | License: Apache-2.0 | 6 | License: Apache-2.0 |
| 7 | URL: https://github.com/keras-team/keras | 7 | URL: https://github.com/keras-team/keras |
| @@ -63,6 +63,9 @@ and is distributed under the MIT license. | |||
| 63 | 63 | ||
| 64 | %build | 64 | %build |
| 65 | cp ./keras/tools/pip_package/setup.py . | 65 | cp ./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_build | 69 | %py3_build |
| 67 | 70 | ||
| 68 | %install | 71 | %install |
| @@ -100,6 +103,9 @@ mv %{buildroot}/doclist.lst . | |||
| 100 | %{_docdir}/* | 103 | %{_docdir}/* |
| 101 | 104 | ||
| 102 | %changelog | 105 | %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-4 | 109 | * Wed Jul 22 2026 lizhengde <lizhengde@xfusion.com> - 2.12.0-4 |
| 104 | - Type:CVE | 110 | - Type:CVE |
| 105 | - CVE:CVE-2026-11816 | 111 | - CVE:CVE-2026-11816 |