mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
simplify virtualenv
- add dev.bat for Windows users - remove ~/.pipcache creation. If that causes issues with PyInstaller, we should use pip --no-cache-dir there or rm -r pip.locations.USER_CACHE_DIR. - remove superfluous pip install calls.
This commit is contained in:
@@ -65,7 +65,7 @@ To confirm that you're up and running, activate the virtualenv, and run the
|
||||
mitmproxy test suite:
|
||||
|
||||
```
|
||||
$ source ../venv.mitmproxy/bin/activate
|
||||
$ ../venv.mitmproxy/bin/activate
|
||||
$ nosetests ./test
|
||||
```
|
||||
Note that the main executables for the project - **mitmdump**, **mitmproxy** and
|
||||
|
||||
12
dev
12
dev
@@ -1,16 +1,6 @@
|
||||
#!/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
|
||||
pip install --src .. -r requirements.txt
|
||||
Reference in New Issue
Block a user