Commit 197d70739e79e08537be22387b88b64e338bc638
1 parent
13f98f05
Exists in
test
Using wheel to cache packages
Showing
1 changed file
with
6 additions
and
11 deletions
Show diff stats
Makefile
1 | 1 | |
2 | -VIRTUALENV_PATH = /tmp/colab-venv | |
3 | -PATH := $(VIRTUALENV_PATH)/bin:${PATH} | |
2 | +WHEEL_DIR = .colab-wheel/ | |
4 | 3 | |
5 | 4 | DJANGO_SETTINGS_MODULE = tests.settings |
6 | 5 | export DJANGO_SETTINGS_MODULE |
7 | 6 | COLAB_SETTINGS = tests/settings.yaml |
8 | 7 | export COLAB_SETTINGS |
9 | 8 | |
10 | -ifndef RELEASE | |
11 | - RELEASE = 1 | |
12 | -endif | |
13 | 9 | |
14 | 10 | all: |
15 | - echo $(RELEASE) | |
11 | + pip install wheel | |
12 | + pip wheel --wheel-dir=$(WHEEL_DIR) . | |
16 | 13 | |
17 | -install: | |
18 | - virtualenv $(VIRTUALENV_PATH) | |
19 | - python setup.py install | |
20 | - virtualenv --relocatable $(VIRTUALENV_PATH) | |
14 | +install: all | |
15 | + pip install --use-wheel --no-index --find-links=$(WHEEL_DIR) . | |
21 | 16 | |
22 | 17 | test_install: install_solr |
23 | 18 | pip install flake8 |
... | ... | @@ -45,4 +40,4 @@ rpm: |
45 | 40 | ci/build_rpm.sh |
46 | 41 | |
47 | 42 | clean: |
48 | - $(RM) -r $(VIRTUALENV_PATH) | |
43 | + $(RM) -r $(WHEEL_DIR) | ... | ... |