From 57cef3e274bde3d01d529105bb7c29551a8100d3 Mon Sep 17 00:00:00 2001 From: Allie Crevier Date: Thu, 8 Aug 2019 11:36:43 -0700 Subject: [PATCH] python3.5 -> python3.7 --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 350f0dd2b..855199366 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Features to be added include: Set up a Python 3 virtual environment and set up dependencies: ``` -virtualenv --python=python3.5 .venv +virtualenv --python=python3.7 .venv source .venv/bin/activate pip install --require-hashes -r dev-requirements.txt ``` @@ -41,11 +41,13 @@ make the `xvfb-run` command available): `apt install xvfb`. brew install pyenv # follow step 3 onwards of https://github.com/pyenv/pyenv#basic-github-checkout -pyenv install 3.5.3 +# install and select the latest version of python 3.7.x +pyenv install 3.7 +pyenv local 3.7.x brew install pip pip install virtualenv -virtualenv --python=python3.5.3 .venv +virtualenv --python=python3.7 .venv source .venv/bin/activate pip install --require-hashes -r dev-requirements.txt ``` @@ -88,7 +90,7 @@ import pdb; pdb.set_trace() Then you can use [`pdb` commands](https://docs.python.org/3/library/pdb.html#debugger-commands) as normal. Logs can be found in the `{sdc-home}/logs`. If you are debugging a version of this application installed from a deb package in Qubes, you can debug issues by looking at the log file in `~/.securedrop_client/logs/client.log`. You can also add additional log lines in the running code in -`/opt/venvs/securedrop-client/lib/python3.5/site-packages/securedrop_client/`. +`/opt/venvs/securedrop-client/lib/python3.7/site-packages/securedrop_client/`. ## Running against a test server