@@ -265,31 +265,28 @@ def initialize_options(self):
265
265
self .all = True
266
266
self ._clean_me = []
267
267
self ._clean_trees = []
268
- self ._clean_exclude = ['np_datetime.c' ,
269
- 'np_datetime_strings.c' ,
270
- 'period.c' ,
271
- 'tokenizer.c' ,
272
- 'io.c' ,
273
- 'ujson.c' ,
274
- 'objToJSON.c' ,
275
- 'JSONtoObj.c' ,
276
- 'ultrajsonenc.c' ,
277
- 'ultrajsondec.c' ,
268
+ self ._clean_exclude = ['pandas/src/datetime/ np_datetime.c' ,
269
+ 'pandas/src/datetime/ np_datetime_strings.c' ,
270
+ 'pandas/src/ period.c' ,
271
+ 'pandas/src/parser/ tokenizer.c' ,
272
+ 'pandas/src/parser/ io.c' ,
273
+ 'pandas/src/ujson/python/ ujson.c' ,
274
+ 'pandas/src/ujson/python/ objToJSON.c' ,
275
+ 'pandas/src/ujson/python/ JSONtoObj.c' ,
276
+ 'pandas/src/ujson/lib/ ultrajsonenc.c' ,
277
+ 'pandas/src/ujson/lib/ ultrajsondec.c' ,
278
278
]
279
279
280
280
for root , dirs , files in os .walk ('pandas' ):
281
281
for f in files :
282
- if f in self ._clean_exclude :
283
- continue
284
-
285
- # XXX
286
- if 'ujson' in f :
282
+ filepath = pjoin (root , f )
283
+ if filepath in self ._clean_exclude :
287
284
continue
288
285
289
286
if os .path .splitext (f )[- 1 ] in ('.pyc' , '.so' , '.o' ,
290
287
'.pyo' ,
291
288
'.pyd' , '.c' , '.orig' ):
292
- self ._clean_me .append (pjoin ( root , f ) )
289
+ self ._clean_me .append (filepath )
293
290
for d in dirs :
294
291
if d == '__pycache__' :
295
292
self ._clean_trees .append (pjoin (root , d ))
0 commit comments