From 4c705626875257dbe6eb236b1c0cc53aed904fc9 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Fri, 26 Mar 2021 21:13:16 +0000 Subject: [PATCH] Updated readme with new install instructions --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b2e81e54..72075a01 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,11 @@ The Raspberry Pi image we use currently ships with Python 3.7.3. For local devel * `pyenv init` (this may or may not be required, depending on how you installed `pyenv`) * `pyenv install 3.7.3` * `pyenv local 3.7.3` -* Ensure you have a working installation of `poetry` (see the [Poetry website](https://python-poetry.org/)). -* We usually set up `poetry` to place virtual environments in the project directory, as this is more easily detected by editors, including VSCode. To do this, you can run: - * ``poetry config virtualenvs.in-project true`` will use a folder called ``.venv`` rather than keeping your environments in a central location. -* `poetry install` will install the server, and all dependencies, into the virtual environment. This step can take a while, especially on the Pi, bring a cup of tea! +* Create a virtual environment and activate it: + * `python -m venv .venv` + * `source .venv/bin/activate` (on Linux) or `.venv/Scripts/activate` (on Windows) + * `pip install pipenv` + * `pipenv install` * Finally, run the server: * You can use `ofm serve` or `ofm restart` on the Raspberry Pi to manage the server. * To run the server locally, with dummy hardware, you can use ``poetry run python -m openflexure_microscope.api.app`` to start a development-mode Flask server on ``localhost:5000``