diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-03-12 22:12:15 +1100 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-03-12 22:12:15 +1100 |
commit | 40366fa94ec09a10f93732c0bf042a29ec866a29 (patch) | |
tree | ed9d1c034f6aa48901d2fec6552c263aa9fbdea6 /dev | |
parent | de3f84934d86e48bf89822828df3eb9c3bd8e1e1 (diff) | |
download | mitmproxy-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-x | dev | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |