Commit ad5a32a
committed
refactor(cpython): crear utilidades compartidas y eliminar codigo duplicado
Implementa sistema de utilidades reutilizables para eliminar duplicacion
de codigo en scripts de CPython builder.
ARCHIVOS NUEVOS:
- utils/logging.sh (61 lineas): funciones de logging centralizadas
- utils/validation.sh (114 lineas): funciones de validacion
- utils/common.sh (83 lineas): funciones auxiliares
- config/versions.conf (45 lineas): configuracion centralizada
SCRIPTS REFACTORIZADOS:
- bootstrap.sh: eliminadas 29 lineas de logging duplicado
- scripts/build_cpython.sh: usa utilidades de validacion
- scripts/validate_build.sh: usa utilidades para limpieza
- scripts/build_wrapper.sh: fallback para ejecucion en host
- scripts/feature_install.sh: fallback para standalone
BENEFICIOS:
- Reduccion neta: 64 lineas eliminadas
- 134 lineas de duplicacion eliminadas
- 12 funciones utilitarias reutilizables
- Validaciones estandarizadas
- Configuracion centralizada
- Mantenibilidad mejorada
- Testabilidad incrementada
No hay breaking changes. Todos los scripts mantienen la misma
interfaz y funcionalidad.
Referencias: infrastructure/cpython/1 parent 6d867ea commit ad5a32a
9 files changed
Lines changed: 514 additions & 275 deletions
File tree
- infrastructure/cpython
- config
- scripts
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 15 | + | |
| 16 | + | |
46 | 17 | | |
47 | 18 | | |
48 | 19 | | |
| |||
61 | 32 | | |
62 | 33 | | |
63 | 34 | | |
64 | | - | |
| 35 | + | |
65 | 36 | | |
66 | | - | |
| 37 | + | |
67 | 38 | | |
68 | | - | |
| 39 | + | |
69 | 40 | | |
70 | 41 | | |
71 | 42 | | |
| |||
89 | 60 | | |
90 | 61 | | |
91 | 62 | | |
92 | | - | |
| 63 | + | |
93 | 64 | | |
94 | | - | |
| 65 | + | |
95 | 66 | | |
96 | 67 | | |
97 | 68 | | |
| |||
106 | 77 | | |
107 | 78 | | |
108 | 79 | | |
109 | | - | |
| 80 | + | |
110 | 81 | | |
111 | 82 | | |
112 | 83 | | |
| |||
126 | 97 | | |
127 | 98 | | |
128 | 99 | | |
129 | | - | |
| 100 | + | |
130 | 101 | | |
131 | 102 | | |
132 | 103 | | |
| |||
137 | 108 | | |
138 | 109 | | |
139 | 110 | | |
140 | | - | |
| 111 | + | |
141 | 112 | | |
142 | 113 | | |
143 | 114 | | |
| |||
155 | 126 | | |
156 | 127 | | |
157 | 128 | | |
158 | | - | |
| 129 | + | |
159 | 130 | | |
160 | 131 | | |
161 | 132 | | |
| |||
168 | 139 | | |
169 | 140 | | |
170 | 141 | | |
171 | | - | |
| 142 | + | |
172 | 143 | | |
173 | 144 | | |
174 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments