You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -165,14 +169,20 @@ Make sure the latest pip installed (required to overcome some older pip problems
165
169
pip3 install -U pip
166
170
```
167
171
172
+
To install exact pip version:
173
+
174
+
```bash
175
+
pip3 install -U pip==10.0.0
176
+
```
177
+
168
178
Note that on ubuntu pip installed with `python3-pip` package is 9.0.1, but it did not(!) downgrade
169
179
module versions (e.g. `pip install click 6.6` when click 6.7 is installed will do nothing).
170
180
Maybe there are other differences, so it's highly recommended to upgrade pip with `pip3 install -U pip`.
171
181
172
182
#### Automatic pip upgrade
173
183
174
184
As described above, there are different ways of pip installation in linux and, more important,
175
-
admin permissions are required to upgrade global pip. So it is impossible to upgrade pip from plugin (in all cases).
185
+
admin permissions are required to upgrade global pip. So it is impossible to upgrade pip from the plugin (in all cases).
176
186
177
187
But, it is possible inside virtualenv or user (--user) scope. Note that plugin creates virtualenv by default (per project independent python environment).
| logLevel | Logging level for python output. By default is `LIFECYCLE` (visible in console). To hide output use `LogLevel.INFO`|
659
-
| extraArgs | Extra arguments applied at the end of declared command. Useful for derived tasks to declare default options |
682
+
| pythonArgs | Extra python arguments applied just after python binary. Useful for declaring common python options (-I, -S, etc.) |
683
+
| extraArgs | Extra arguments applied at the end of declared command (usually module arguments). Useful for derived tasks to declare default options |
660
684
| outputPrefix | Prefix, applied for each line of python output. By default is '\t' to identify output for called gradle command |
661
685
662
-
Also, task provide extra method `extraArgs(String... args)` to declare extra arguments (shortcut to append values to
663
-
extraArgs property).
686
+
Also, task provide extra methods:
687
+
688
+
*`pythonArgs(String... args)` to declare extra python arguments (shortcut to append values to pythonArgs property).
689
+
*`extraArgs(String... args)` to declare extra arguments (shortcut to append values to extraArgs property).
664
690
665
691
#### PipInstallTask
666
692
@@ -683,6 +709,7 @@ Configuration:
683
709
| userScope | Use current user scope (`--user` flag). Enabled by default to avoid permission problems on *nix (global configuration). |
684
710
| showInstalledVersions | Perform `pip list` after installation. By default use global configuration value |
685
711
| alwaysInstallModules | Call `pip install module` for all declared modules, even if it is already installed with correct version. By default use global configuration value |
712
+
| useCache | Can be used to disable pip cache (--no-cache-dir) |
686
713
687
714
And, as shown above, custom methods: `pip(String... modules)` and `pip(Iterable<String> modules)`
688
715
@@ -697,7 +724,7 @@ In your plugin, add plugin as dependency:
0 commit comments