aboutsummaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-03-12 22:12:15 +1100
committerAldo Cortesi <aldo@nullcube.com>2015-03-12 22:12:15 +1100
commit40366fa94ec09a10f93732c0bf042a29ec866a29 (patch)
treeed9d1c034f6aa48901d2fec6552c263aa9fbdea6 /dev
parentde3f84934d86e48bf89822828df3eb9c3bd8e1e1 (diff)
downloadmitmproxy-40366fa94ec09a10f93732c0bf042a29ec866a29.tar.gz
mitmproxy-40366fa94ec09a10f93732c0bf042a29ec866a29.tar.bz2
mitmproxy-40366fa94ec09a10f93732c0bf042a29ec866a29.zip
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.
Diffstat (limited to 'dev')
-rwxr-xr-xdev16
1 files changed, 16 insertions, 0 deletions
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