From a4c30ae0b43a46b9d1136f03c1a91a9aef7ece13 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Sat, 7 Mar 2015 12:07:53 +0100 Subject: [PATCH] Add self-contained virtualenv installer / Makefile --- Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 39 +++++++++++---------------------------- 2 files changed, 57 insertions(+), 28 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..a6cd8f1b --- /dev/null +++ b/Makefile @@ -0,0 +1,46 @@ +.PHONY: clean_env init_env clean_virtualenv install_packages clean install run all +PYTHON=python2.7 +VE_VER=12.0.7 +LOCAL_PYTHON=bin/python + +all: install + +clean: clean_env + +veryclean: clean clean_virtualenv + +install: virtualenv bin/python install_packages + + +# phony, but depends on file +make_env: ${LOCAL_PYTHON} + +# phony, but fast repeated execution +install_packages: make_env + bin/pip install -r requirements.txt + +# phony +clean_env: + rm -rf bin/ include/ lib/ local/ share/ + rm -f pip-selfcheck.json + +# binary name representing set-up env +${LOCAL_PYTHON}: virtualenv + ${PYTHON} virtualenv/virtualenv.py . + + + +# directory name +virtualenv: + curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-${VE_VER}.tar.gz + tar xvfz virtualenv-${VE_VER}.tar.gz + mv virtualenv-${VE_VER} virtualenv + rm virtualenv-${VE_VER}.tar.gz + +# phony +clean_virtualenv: + rm -rf virtualenv/ + + + + diff --git a/requirements.txt b/requirements.txt index 64df5b04..a1aa54ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,29 +1,12 @@ -django-cms<3.1 +Django==1.7.5 +django-bootstrap-sass==0.0.6a0 +django-mptt==0.6.1 +django-reversion==1.8.5 +django-sekizai==0.8.1 + +html5lib==0.999 +ipython==3.0.0 +Pillow==2.7.0 +pytz==2014.10 +six==1.9.0 -django-mptt>=0.6 -djangocms-text-ckeditor>=2.1.4 -djangocms-admin-style -djangocms-column -djangocms-style -djangocms-flash -djangocms-googlemap -djangocms-inherit - -git+git://github.com/philomat/django-teambox-icons#egg=django-teambox-icons - -djangocms-file -djangocms-link -djangocms-picture -djangocms-teaser -djangocms-video - -Django<1.7 -pytz -django-reversion>=1.8 - -django-classy-tags>=0.3.4.1 -south>=0.7.2 -html5lib -Pillow>=2 -django-sekizai>=0.7 -six