mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
40366fa94e
- 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.
17 lines
417 B
Bash
Executable File
17 lines
417 B
Bash
Executable File
#!/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
|