File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ function installRequirements() {
18
18
19
19
this . serverless . cli . log ( `Installing required Python packages with ${ this . options . pythonBin } ...` ) ;
20
20
21
+ // In case the requirements file is a symlink, copy it to .serverless/requirements.txt
22
+ // if using docker to avoid errors
23
+ if ( this . options . dockerizePip && fileName !== dotSlsReqs ) {
24
+ fse . copySync ( fileName , dotSlsReqs ) ;
25
+ fileName = dotSlsReqs ;
26
+ }
27
+
21
28
let cmd ;
22
29
let options ;
23
30
const pipCmd = [
@@ -39,11 +46,6 @@ function installRequirements() {
39
46
pipCmd . push ( '--system' ) ;
40
47
}
41
48
if ( this . options . dockerizePip ) {
42
- // In case the requirements file is a symlink, copy it to .serverless/requirements.txt
43
- if ( fileName !== dotSlsReqs ) {
44
- fse . copySync ( fileName , dotSlsReqs ) ;
45
- fileName = dotSlsReqs ;
46
- }
47
49
cmd = 'docker' ;
48
50
49
51
this . serverless . cli . log ( `Docker Image: ${ this . options . dockerImage } ` ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " serverless-python-requirements" ,
3
- "version" : " 3.0.8 " ,
3
+ "version" : " 3.0.9 " ,
4
4
"engines" : {
5
5
"node" : " >=6.0"
6
6
},
You can’t perform that action at this time.
0 commit comments