File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919 'region' : basestring , 'handler' : basestring ,
2020 'role' : basestring , 'timeout' : int , 'memory' : int }
2121
22- DEFAULT_PARAMS = {'requirements' : None , 'publish' : False }
22+ DEFAULT_PARAMS = {u 'requirements' : [], u 'publish' : False }
2323
2424
2525class Config (object ):
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def cleanup(path):
3333 os .remove (zip_file )
3434
3535
36- def build_package (path , requirements = None ):
36+ def build_package (path , requirements ):
3737 temp_workspace = os .path .join (path , TEMP_WORKSPACE_NAME )
3838 # Calling cleanup first to cover a previous failed run
3939 cleanup (path )
@@ -51,7 +51,7 @@ def build_package(path, requirements=None):
5151 raise Exception ('virtualenv returned unsuccessfully' )
5252
5353 cmd = None
54- if requirements is not None :
54+ if not requirements :
5555 LOG .debug ("Installing requirements found %s in config" % requirements )
5656 cmd = [os .path .join (pkg_venv , 'bin/pip' ),
5757 'install' , " " .join (requirements )]
You can’t perform that action at this time.
0 commit comments