From 40366fa94ec09a10f93732c0bf042a29ec866a29 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 12 Mar 2015 22:12:15 +1100 Subject: Virtualenv is the one and only recommended dev environment - Create a "dev" script to create a virtualenv-based dev environment - Update the docs to remove non-virtualenv install recommendations - Update osx-binaries generation to use virtualenv TODO: - The dev script or an equivalent should be made to work on Windows - We still can't remove the annoying top-level command scripts, because pyinstaller doesn't support entry points. Once it does, they can go. --- dev | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dev (limited to 'dev') diff --git a/dev b/dev new file mode 100755 index 00000000..c8346af1 --- /dev/null +++ b/dev @@ -0,0 +1,16 @@ +#!/bin/sh +VENV=../venv.mitmproxy +PIP="$VENV/bin/pip --cache-dir ~/.pipcache" + +echo "This script sets up the following:" +echo "\t~/.pipcache - A pip cache directory" +echo "\t$VENV - A development virtualenv" + +mkdir -p ~/.pipcache + +virtualenv $VENV +source $VENV/bin/activate +$PIP install -r ./requirements.txt +# Re-install these to make them editable +$PIP install --editable ../netlib +$PIP install --editable ../pathod -- cgit v1.2.3