@@ -197,6 +197,24 @@ def build():
197
197
environ ['LANG' ] = 'C'
198
198
environ ['TERM' ] = 'xterm'
199
199
200
+ find_executable ('perl' )
201
+ find_executable ('patch' )
202
+ find_executable ('make' )
203
+ find_executable ('git' )
204
+
205
+ with cwd ('{archives}' ):
206
+ for url in URLS :
207
+ if type (url ) == tuple :
208
+ url , name = url [0 ], url [1 ]
209
+ else :
210
+ name = path .basename (url )
211
+ fetch (name , url )
212
+
213
+ unpack ('python-lha' , work_dir = '{build}' )
214
+ python_setup ('python-lha' )
215
+
216
+ add_site_dir ('{host}' )
217
+
200
218
"""
201
219
Make sure we always choose known compiler (from the distro) and not one in
202
220
user's path that could shadow the original one.
@@ -218,28 +236,10 @@ def build():
218
236
environ ['CC' ] = ' ' .join ([find_executable (CC ), ARCH ])
219
237
environ ['CXX' ] = ' ' .join ([find_executable (CXX ), ARCH ])
220
238
221
- find_executable ('perl' )
222
- find_executable ('patch' )
223
- find_executable ('make' )
224
- find_executable ('git' )
225
-
226
239
environ ['PATH' ] = ":" .join ([path .join ('{target}' , 'bin' ),
227
240
path .join ('{host}' , 'bin' ),
228
241
environ ['PATH' ]])
229
242
230
- add_site_dir ('{host}' )
231
-
232
- with cwd ('{archives}' ):
233
- for url in URLS :
234
- if type (url ) == tuple :
235
- url , name = url [0 ], url [1 ]
236
- else :
237
- name = path .basename (url )
238
- fetch (name , url )
239
-
240
- unpack ('python-lha' , work_dir = '{build}' )
241
- python_setup ('python-lha' )
242
-
243
243
unpack ('{m4}' )
244
244
configure ('{m4}' , '--prefix={host}' )
245
245
make ('{m4}' )
0 commit comments