Be more flexible in finding pip, especially after we start replacing it
Change-Id: I14b0ac1584aab99c2fe58a78e3a43196ae8130ca
| ... | ... |
@@ -1483,11 +1483,7 @@ function get_rootwrap_location() {
|
| 1483 | 1483 |
# Get the path to the pip command. |
| 1484 | 1484 |
# get_pip_command |
| 1485 | 1485 |
function get_pip_command() {
|
| 1486 |
- if is_fedora; then |
|
| 1487 |
- which pip-python |
|
| 1488 |
- else |
|
| 1489 |
- which pip |
|
| 1490 |
- fi |
|
| 1486 |
+ which pip || which pip-python |
|
| 1491 | 1487 |
|
| 1492 | 1488 |
if [ $? -ne 0 ]; then |
| 1493 | 1489 |
die $LINENO "Unable to find pip; cannot continue" |