@@ -89,7 +89,7 @@ class PkgPyFuncs {
8989 }
9090
9191 let cmd = 'pip'
92- let args = [ 'install' , '--upgrade' , '-t' , upath . normalize ( buildPath ) , '-r' ]
92+ let args = [ 'install' , '--upgrade' , '-t' , upath . normalize ( buildPath ) , '-r' ]
9393 if ( this . useDocker === true ) {
9494 cmd = 'docker'
9595 args = [ 'exec' , this . containerName , 'pip' , ...args ]
@@ -107,24 +107,26 @@ class PkgPyFuncs {
107107
108108 runProcess ( cmd , args ) {
109109 const ret = ChildProcess . spawnSync ( cmd , args )
110-
111110 if ( ret . error ) {
112111 throw new this . serverless . classes . Error ( `[serverless-package-python-functions] ${ ret . error . message } ` )
113112 }
114113
115114 if ( ret . stderr . length != 0 ) {
116115 const errorText = ret . stderr . toString ( ) . trim ( )
117- if ( errorText . toLowerCase ( ) . search ( 'error' ) != - 1 ) {
118- this . log ( errorText )
119- console . log ( errorText )
120- this . error ( errorText )
121- }
116+ console . log ( errorText )
117+ this . error ( errorText )
118+ // if (errorText.toLowerCase().search('error') != -1){
119+ // this.log(errorText)
120+ // console.log(errorText)
121+ // this.error(errorText)
122+ // }
122123 }
123124
124125 const out = ret . stdout . toString ( )
125126 return out
126127 }
127128
129+
128130 setupContainer ( ) {
129131 let out = this . runProcess ( 'docker' , [ 'ps' , '-a' , '--filter' , `name=${ this . containerName } ` , '--format' , '{{.Names}}' ] )
130132 out = out . replace ( / ^ \s + | \s + $ / g, '' )
@@ -173,8 +175,6 @@ class PkgPyFuncs {
173175 // Copy includes
174176 let includes = target . includes || [ ]
175177 if ( this . globalIncludes ) {
176- console . log ( 'includes' )
177- console . log ( includes )
178178 includes = _ . concat ( includes , this . globalIncludes )
179179 }
180180 _ . forEach ( includes , ( item ) => { Fse . copySync ( item , buildPath ) } )
0 commit comments