Commit ff7ed3e
authored
Quote packages in pip install to avoid shell expansion (#529)
* Quote packages in pip install to avoid shell expansion
Without quotes, pip installs with versioning that includes
characters '<', '>', or '|' result in shell expansion and
creation of unwanted files
Signed-off-by: Dylan Eustice <deustice@nvidia.com>
* Update unit tests to expect quotes
* Use shlex_quotes from six.moves instead of f-string and update unit tests
Signed-off-by: Dylan Eustice <deustice@nvidia.com>
---------
Signed-off-by: Dylan Eustice <deustice@nvidia.com>1 parent 2d490e7 commit ff7ed3e
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| 169 | + | |
| 170 | + | |
168 | 171 | | |
169 | | - | |
| 172 | + | |
170 | 173 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
0 commit comments