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 19
19
'region' : basestring , 'handler' : basestring ,
20
20
'role' : basestring , 'timeout' : int , 'memory' : int }
21
21
22
- DEFAULT_PARAMS = {'requirements' : None , 'publish' : False }
22
+ DEFAULT_PARAMS = {u 'requirements' : [], u 'publish' : False }
23
23
24
24
25
25
class Config (object ):
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def cleanup(path):
33
33
os .remove (zip_file )
34
34
35
35
36
- def build_package (path , requirements = None ):
36
+ def build_package (path , requirements ):
37
37
temp_workspace = os .path .join (path , TEMP_WORKSPACE_NAME )
38
38
# Calling cleanup first to cover a previous failed run
39
39
cleanup (path )
@@ -51,7 +51,7 @@ def build_package(path, requirements=None):
51
51
raise Exception ('virtualenv returned unsuccessfully' )
52
52
53
53
cmd = None
54
- if requirements is not None :
54
+ if not requirements :
55
55
LOG .debug ("Installing requirements found %s in config" % requirements )
56
56
cmd = [os .path .join (pkg_venv , 'bin/pip' ),
57
57
'install' , " " .join (requirements )]
You can’t perform that action at this time.
0 commit comments