Skip to content

Commit

Permalink
fix(travis): install virtualenv automatically
Browse files Browse the repository at this point in the history
The only dependency we really have is python, and wget.
Pip is not needed !
  • Loading branch information
Byron committed Mar 14, 2015
1 parent dd0772f commit 5fd7cb5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 40 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.timestamp
.pyenv
.virtualenv
gen/
*.go
*.pyc
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
.PHONY: json-to-xml clean help api-deps regen-apis license
.SUFFIXES:

include Makefile.helpers

VENV := virtualenv
VENV = .virtualenv/virtualenv.py
VENV_DIR := .pyenv
PYTHON := $(VENV_DIR)/bin/python
PIP := $(VENV_DIR)/bin/pip
Expand Down Expand Up @@ -44,8 +42,13 @@ help:
$(info update-json - rediscover API schema json files and update api-list.yaml with latest versions)
$(info api-deps - generate a file to tell make what API file dependencies will be)

$(PYTHON):
virtualenv $(VENV_DIR)
$(VENV):
wget -nv https://pypi.python.org/packages/source/v/virtualenv/virtualenv-12.0.7.tar.gz -O virtualenv-12.0.7.tar.gz
tar -xzf virtualenv-12.0.7.tar.gz && mv virtualenv-12.0.7 ./.virtualenv && rm -f virtualenv-12.0.7.tar.gz
chmod +x $@

$(PYTHON): $(VENV)
$(VENV) $(VENV_DIR)
$(PIP) install mako pyyaml

$(MAKO_RENDER): $(PYTHON)
Expand Down
35 changes: 0 additions & 35 deletions Makefile.helpers

This file was deleted.

0 comments on commit 5fd7cb5

Please sign in to comment.