Skip to content

Commit 5fd7cb5

Browse files
committed
fix(travis): install virtualenv automatically
The only dependency we really have is python, and wget. Pip is not needed !
1 parent dd0772f commit 5fd7cb5

3 files changed

Lines changed: 9 additions & 40 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.timestamp
22
.pyenv
3+
.virtualenv
34
gen/
45
*.go
56
*.pyc

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.PHONY: json-to-xml clean help api-deps regen-apis license
22
.SUFFIXES:
33

4-
include Makefile.helpers
5-
6-
VENV := virtualenv
4+
VENV = .virtualenv/virtualenv.py
75
VENV_DIR := .pyenv
86
PYTHON := $(VENV_DIR)/bin/python
97
PIP := $(VENV_DIR)/bin/pip
@@ -44,8 +42,13 @@ help:
4442
$(info update-json - rediscover API schema json files and update api-list.yaml with latest versions)
4543
$(info api-deps - generate a file to tell make what API file dependencies will be)
4644

47-
$(PYTHON):
48-
virtualenv $(VENV_DIR)
45+
$(VENV):
46+
wget -nv https://pypi.python.org/packages/source/v/virtualenv/virtualenv-12.0.7.tar.gz -O virtualenv-12.0.7.tar.gz
47+
tar -xzf virtualenv-12.0.7.tar.gz && mv virtualenv-12.0.7 ./.virtualenv && rm -f virtualenv-12.0.7.tar.gz
48+
chmod +x $@
49+
50+
$(PYTHON): $(VENV)
51+
$(VENV) $(VENV_DIR)
4952
$(PIP) install mako pyyaml
5053

5154
$(MAKO_RENDER): $(PYTHON)

Makefile.helpers

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)