From a2be44cb2a5e422cab395f5d020d18e3f8edf962 Mon Sep 17 00:00:00 2001 From: Sean Sawyer Date: Thu, 10 Oct 2019 11:16:28 -0400 Subject: [PATCH] Add pyenv instructions to README --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 25fc1ea..2e0dc23 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,36 @@ A little game I wrote for a talk on roguelike game development in Python at PyAT ### First time setup +Clone and enter the project directory: + +``` +git clone https://github.com/seansawyer/python-meetup-roguelike.git +cd python-meetup-roguelike +``` + +Then, if you are using pyenv: + +``` +pyenv virtualenv 3.7.4 pmrl-3.7.4 +pyenv activate pmrl-3.7.4 +pip install -r requirements.txt +``` + +Or if you are using your system Python (3.7+): + ``` python3 -m venv ./env source env/bin/activate -# Now that you're in your virtual environment... pip install -r requirements.txt ``` +Now you may run the application: + +``` +# In your virtual environment... +python pmrl.py +``` + ### Upgrade dependencies ```