Skip to content

Commit

Permalink
Install and use pep8 in virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 committed Feb 7, 2014
1 parent 5a36553 commit ed7c868
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Expand Up @@ -93,10 +93,14 @@ $(virtualenv): $(virtualenv_tarball_path) $(system_python) $(virtualenv_tarball_
$(virtualenv_python): $(system_python) $(virtualenv)
$(virtualenv) --python=$(system_python) $(virtualenv_directory)

$(virtualenv_directory)/bin/pep8:
. $(virtualenv_directory)/bin/activate && pip install $(notdir $@)

.PHONY: test
test: $(virtualenv_python)
make METHOD=git python-pep8
. $(virtualenv_directory)/bin/activate && $(virtualenv_python) $(SETUP) test
test: $(virtualenv_python) $(virtualenv_directory)/bin/pep8
. $(virtualenv_directory)/bin/activate && \
$(virtualenv_python) $(SETUP) test && \
make METHOD=git python-pep8

.PHONY: compile
compile: test $(virtualenv_python)
Expand Down

0 comments on commit ed7c868

Please sign in to comment.