@@ -33,10 +33,12 @@ def finalize_options(self):
3333
3434 def run (self ):
3535 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 )
4042
4143 yaml_src = os .path .join (work_path , 'uap-core' , 'regexes.yaml' )
4244 if not os .path .exists (yaml_src ):
@@ -111,12 +113,6 @@ def run(self):
111113 _develop .run (self )
112114
113115
114- class build (_build ):
115- def run (self ):
116- self .run_command ('build_regexes' )
117- _build .run (self )
118-
119-
120116class install (_install ):
121117 def run (self ):
122118 self .run_command ('build_regexes' )
@@ -129,7 +125,6 @@ class sdist(_sdist):
129125
130126cmdclass = {
131127 'develop' : develop ,
132- 'build' : build ,
133128 'sdist' : sdist ,
134129 'install' : install ,
135130 'build_regexes' : build_regexes ,
0 commit comments