Commit ced28b8f82545ae07d334cfcbcc58c49e8036779
1 parent
747ed7b4
Exists in
master
and in
1 other branch
use local virtualenv to download packages
Showing
1 changed file
with
8 additions
and
5 deletions
Show diff stats
Makefile
| @@ -6,9 +6,7 @@ DISTDIR = $(NAME)-$(VERSION) | @@ -6,9 +6,7 @@ DISTDIR = $(NAME)-$(VERSION) | ||
| 6 | TARBALL = dist/$(DISTDIR).tar.gz | 6 | TARBALL = dist/$(DISTDIR).tar.gz |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | -all: | ||
| 10 | - rm -rf ./build | ||
| 11 | - virtualenv ./build | 9 | +all: virtualenv |
| 12 | ./build/bin/pip install --no-index --find-links=$(DISTDIR) pip==1.5.6 | 10 | ./build/bin/pip install --no-index --find-links=$(DISTDIR) pip==1.5.6 |
| 13 | ./build/bin/pip install --no-index --find-links=$(DISTDIR) --use-wheel -r requirements.txt | 11 | ./build/bin/pip install --no-index --find-links=$(DISTDIR) --use-wheel -r requirements.txt |
| 14 | ./build/bin/pip install --no-index --find-links=$(DISTDIR) --no-deps -r requirements-colab-plugins.txt | 12 | ./build/bin/pip install --no-index --find-links=$(DISTDIR) --no-deps -r requirements-colab-plugins.txt |
| @@ -36,9 +34,14 @@ distclean: | @@ -36,9 +34,14 @@ distclean: | ||
| 36 | $(RM) -r $$(dirname $(TARBALL)) src/ | 34 | $(RM) -r $$(dirname $(TARBALL)) src/ |
| 37 | $(RM) -r $(DISTDIR) | 35 | $(RM) -r $(DISTDIR) |
| 38 | 36 | ||
| 39 | -downloadtar: | 37 | +downloadtar: virtualenv |
| 40 | mkdir -p $(DISTDIR) | 38 | mkdir -p $(DISTDIR) |
| 41 | wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz -O $(DISTDIR)/pip-1.5.6.tar.gz | 39 | wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz -O $(DISTDIR)/pip-1.5.6.tar.gz |
| 42 | wget https://github.com/colab/colab-noosfero-plugin/archive/v0.1.1.zip -O $(DISTDIR)/colab-noosfero-plugin-0.1.1.zip | 40 | wget https://github.com/colab/colab-noosfero-plugin/archive/v0.1.1.zip -O $(DISTDIR)/colab-noosfero-plugin-0.1.1.zip |
| 43 | wget https://github.com/colab/colab-gitlab-plugin/archive/v0.1.zip -O $(DISTDIR)/colab-gitlab-plugin-0.1.zip | 41 | wget https://github.com/colab/colab-gitlab-plugin/archive/v0.1.zip -O $(DISTDIR)/colab-gitlab-plugin-0.1.zip |
| 44 | - pip install --download $(DISTDIR) -r requirements.txt | 42 | + ./build/bin/pip install --download $(DISTDIR) -r requirements.txt |
| 43 | + | ||
| 44 | +.PHONY: virtualenv | ||
| 45 | +virtualenv: | ||
| 46 | + rm -rf ./build | ||
| 47 | + virtualenv ./build |