Install runners in parallel to speed up the build.
@@ -163,24 +163,28 @@ install-runners:
@echo ""
@echo "================== INSTALL RUNNERS ===================="
@echo ""
- @for component in $(COMPONENTS_RUNNERS); do \
- echo "==========================================================="; \
- echo "Installing runner:" $$component; \
- echo "==========================================================="; \
- (. $(VIRTUALENV_DIR)/bin/activate; cd $$component; python setup.py develop --no-deps); \
- done
+ # NOTE: We use xargs to speed things up by installing runners in parallel
+ echo -e "$(COMPONENTS_RUNNERS)" | tr -d "\n" | xargs -P 10 -d " " -n1 -i sh -c ". $(VIRTUALENV_DIR)/bin/activate; cd {} ; python setup.py develop --no-deps"
+ #@for component in $(COMPONENTS_RUNNERS); do \
+ # echo "==========================================================="; \
+ # echo "Installing runner:" $$component; \
+ # echo "==========================================================="; \
+ # #(. $(VIRTUALENV_DIR)/bin/activate; cd $$component; python setup.py develop --no-deps); \
+ #done
.PHONY: install-mock-runners
install-mock-runners:
@echo ""
@echo "================== INSTALL MOCK RUNNERS ===================="
@echo ""
- @for component in $(MOCK_RUNNERS); do \
- echo "==========================================================="; \
- echo "Installing mock runner:" $$component; \
- echo "==========================================================="; \
- (. $(VIRTUALENV_DIR)/bin/activate; cd $$component; python setup.py develop --no-deps); \
- done
+ # NOTE: We use xargs to speed things up by installing runners in parallel
+ echo -e "$(MOCK_RUNNERS)" | tr -d "\n" | xargs -P 10 -d " " -n1 -i sh -c ". $(VIRTUALENV_DIR)/bin/activate; cd {} ; python setup.py develop --no-deps"
+ #@for component in $(MOCK_RUNNERS); do \
+ # echo "==========================================================="; \
+ # echo "Installing mock runner:" $$component; \
+ # echo "==========================================================="; \
+ # (. $(VIRTUALENV_DIR)/bin/activate; cd $$component; python setup.py develop --no-deps); \
+ #done
.PHONY: check-requirements
.check-requirements:
