@@ -33,10 +33,12 @@ def finalize_options(self):
33
33
34
34
def run (self ):
35
35
work_path = self .work_path
36
- if os .path .exists (os .path .join (work_path , '.git' )):
37
- log .info ('initializing git submodules' )
38
- check_output (['git' , 'submodule' , 'init' ], cwd = work_path )
39
- check_output (['git' , 'submodule' , 'update' ], cwd = work_path )
36
+ if not os .path .exists (os .path .join (work_path , '.git' )):
37
+ return
38
+
39
+ log .info ('initializing git submodules' )
40
+ check_output (['git' , 'submodule' , 'init' ], cwd = work_path )
41
+ check_output (['git' , 'submodule' , 'update' ], cwd = work_path )
40
42
41
43
yaml_src = os .path .join (work_path , 'uap-core' , 'regexes.yaml' )
42
44
if not os .path .exists (yaml_src ):
@@ -111,12 +113,6 @@ def run(self):
111
113
_develop .run (self )
112
114
113
115
114
- class build (_build ):
115
- def run (self ):
116
- self .run_command ('build_regexes' )
117
- _build .run (self )
118
-
119
-
120
116
class install (_install ):
121
117
def run (self ):
122
118
self .run_command ('build_regexes' )
@@ -129,7 +125,6 @@ class sdist(_sdist):
129
125
130
126
cmdclass = {
131
127
'develop' : develop ,
132
- 'build' : build ,
133
128
'sdist' : sdist ,
134
129
'install' : install ,
135
130
'build_regexes' : build_regexes ,
0 commit comments