Add section in Makefile to install pip for python3 virtualenv
@@ -228,8 +228,10 @@ check-python-packages:
@echo ""
@echo "================== CHECK PYTHON PACKAGES ===================="
@echo ""
-
test -f $(VIRTUALENV_COMPONENTS_DIR)/bin/activate || $(PYTHON_VERSION) -m venv $(VIRTUALENV_COMPONENTS_DIR) || virtualenv --python=$(PYTHON_VERSION) $(VIRTUALENV_COMPONENTS_DIR) --no-download
+ @if [[ $(PYTHON_VERSION) == *"python3.6"* ]]; then \
+ $(PYTHON_VERSION) -m pip install --user --upgrade pip; \
+ fi
@for component in $(COMPONENTS_WITHOUT_ST2TESTS); do \
echo "==========================================================="; \
echo "Checking component:" $$component; \
@@ -378,6 +380,9 @@ flake8: requirements .flake8
@echo "==================== st2client install check ===================="
@echo
test -f $(VIRTUALENV_ST2CLIENT_DIR)/bin/activate || $(PYTHON_VERSION) -m venv $(VIRTUALENV_ST2CLIENT_DIR) || virtualenv --python=$(PYTHON_VERSION) $(VIRTUALENV_ST2CLIENT_DIR) --no-download
+ @if [[ $(PYTHON_VERSION) == *"python3.6"* ]]; then \
+ $(PYTHON_VERSION) -m pip install --user --upgrade pip; \
+ fi
# Setup PYTHONPATH in bash activate script...
# Delete existing entries (if any)
