File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 8
8
import sys
9
9
import os
10
10
import shutil
11
- from distutils .core import Command
11
+ from distutils .command . clean import clean as Clean
12
12
13
13
if sys .version_info [0 ] < 3 :
14
14
import __builtin__ as builtins
56
56
57
57
###############################################################################
58
58
59
- class CleanCommand (Command ):
59
+ class CleanCommand (Clean ):
60
60
description = "Remove build directories, and compiled file in the source tree"
61
- user_options = []
62
-
63
- def initialize_options (self ):
64
- self .cwd = None
65
-
66
- def finalize_options (self ):
67
- self .cwd = os .getcwd ()
68
61
69
62
def run (self ):
70
- assert <
5157
span class="pl-s1 x">os. getcwd () == self . cwd , 'Must be in package root: %s' % self . cwd
63
+ Clean . run ( self )
71
64
if os .path .exists ('build' ):
72
65
shutil .rmtree ('build' )
73
66
for dirpath , dirnames , filenames in os .walk ('sklearn' ):
You can’t perform that action at this time.
0 commit comments