已开启
Add missing __init__.py for all subpackages during build #45
bidiudiu创建于 7月23日
Add missing __init__.py for all subpackages during build #45
已开启
共 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.10.0 | 3 | Version: 2.10.0 |
| 4 | -Release: 1 | 4 | +Release: 2 |
| 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 |
| @@ -59,6 +59,9 @@ and is distributed under the MIT license. | |||
| 59 | 59 | ||
| 60 | %build | 60 | %build |
| 61 | cp ./keras/tools/pip_package/setup.py . | 61 | cp ./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_build | 65 | %py3_build |
| 63 | 66 | ||
| 64 | %install | 67 | %install |
| @@ -96,6 +99,9 @@ mv %{buildroot}/doclist.lst . | |||
| 96 | %{_docdir}/* | 99 | %{_docdir}/* |
| 97 | 100 | ||
| 98 | %changelog | 101 | %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-1 | 105 | * Fri Oct 27 2023 renhongxun@<renhongxun@h-partners.ocm> - 2.10.0-1 |
| 100 | - Revert version to 2.10.0 | 106 | - Revert version to 2.10.0 |
| 101 | 107 | ||