@@ -37,8 +37,8 @@ def detect_file_exists(self, dependencies: str = None) -> str:
37
37
dependencies = self ._capture_from_local_runtime ()
38
38
39
39
# No additional dependencies specified
40
- if dependencies is None :
41
- return None
40
+ # if dependencies is None:
41
+ # return None
42
42
43
43
# Dependencies specified as either req.txt or conda_env.yml
44
44
if dependencies .endswith (".txt" ):
@@ -51,13 +51,13 @@ def detect_file_exists(self, dependencies: str = None) -> str:
51
51
def _install_requirements_txt (self ):
52
52
"""Install requirements.txt file using pip"""
53
53
logger .info ("Running command to pip install" )
54
- subprocess .run ("pip install -r require.txt" , shell = True )
54
+ subprocess .run ("pip install -r require.txt" , shell = True , check = True )
55
55
logger .info ("Command ran successfully" )
56
56
57
57
def _update_conda_env_in_path (self ):
58
58
"""Update conda env using conda yml file"""
59
59
print ("Updating conda env" )
60
- subprocess .run ("conda env update -f conda_in_process.yml" , shell = True )
60
+ subprocess .run ("conda env update -f conda_in_process.yml" , shell = True , check = True )
61
61
print ("Conda env updated successfully" )
62
62
63
63
def _get_active_conda_env_name (self ) -> str :
0 commit comments