@@ -37,15 +37,14 @@ func pipInstallRequirements(files []string, dir, name string) error {
37
37
// as possible PyPI downloads. In the first round the --find-links
38
38
// option will make sure that only things staged in the worker will be
39
39
// used without following their dependencies.
40
- args := []string {"-m" , "pip" , "install" , "-r" , filepath .Join (dir , name ), "--no-cache-dir" , "--disable-pip-version-check" , "--no-index" , "--no-deps" , "--find-links" ,
41
- "-q" , dir }
40
+ args := []string {"-m" , "pip" , "install" , "-q" , "-r" , filepath .Join (dir , name ), "--no-cache-dir" , "--disable-pip-version-check" , "--no-index" , "--no-deps" , "--find-links" , dir }
42
41
if err := execx .Execute ("python" , args ... ); err != nil {
43
42
fmt .Println ("Some packages could not be installed solely from the requirements cache. Installing packages from PyPI." )
44
43
}
45
44
// The second install round opens up the search for packages on PyPI and
46
45
// also installs dependencies. The key is that if all the packages have
47
46
// been installed in the first round then this command will be a no-op.
48
- args = []string {"-m" , "pip" , "install" , "-r" , filepath .Join (dir , name ), "--no-cache-dir" , "--disable-pip-version-check" , "--find-links" , "-q " , dir }
47
+ args = []string {"-m" , "pip" , "install" , "-q" , "- r" , filepath .Join (dir , name ), "--no-cache-dir" , "--disable-pip-version-check" , "--find-links" , dir }
49
48
return execx .Execute ("python" , args ... )
50
49
}
51
50
}
@@ -77,18 +76,18 @@ func pipInstallPackage(files []string, dir, name string, force, optional bool, e
77
76
// installed version will match the package specified, the package itself
78
77
// will not be reinstalled, but its dependencies will now be resolved and
79
78
// installed if necessary. This achieves our goal outlined above.
80
- args := []string {"-m" , "pip" , "install" , "-- no-cache-dir" , "--disable-pip-version-check" , "--upgrade" , "--force-reinstall" , "--no-deps" , "-q " ,
79
+ args := []string {"-m" , "pip" , "install" , "-q" , "-- no-cache-dir" , "--disable-pip-version-check" , "--upgrade" , "--force-reinstall" , "--no-deps" ,
81
80
filepath .Join (dir , packageSpec )}
82
81
err := execx .Execute ("python" , args ... )
83
82
if err != nil {
84
83
return err
85
84
}
86
- args = []string {"-m" , "pip" , "install" , "-- no-cache-dir" , "--disable-pip-version-check" , "-q " , filepath .Join (dir , packageSpec )}
85
+ args = []string {"-m" , "pip" , "install" , "-q" , "-- no-cache-dir" , "--disable-pip-version-check" , filepath .Join (dir , packageSpec )}
87
86
return execx .Execute ("python" , args ... )
88
87
}
89
88
90
89
// Case when we do not perform a forced reinstall.
91
- args := []string {"-m" , "pip" , "install" , "-- no-cache-dir" , "--disable-pip-version-check" , "-q " , filepath .Join (dir , packageSpec )}
90
+ args := []string {"-m" , "pip" , "install" , "-q" , "-- no-cache-dir" , "--disable-pip-version-check" , filepath .Join (dir , packageSpec )}
92
91
return execx .Execute ("python" , args ... )
93
92
}
94
93
}
0 commit comments