From b54a300b7564a29ff1cfedfe343b7a4b59dd7ce5 Mon Sep 17 00:00:00 2001 From: Julius A Date: Thu, 5 Dec 2024 16:00:49 -0700 Subject: [PATCH] Update README.md --- domain-cc/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/domain-cc/README.md b/domain-cc/README.md index 6a9aa46936..a1ef0d7860 100644 --- a/domain-cc/README.md +++ b/domain-cc/README.md @@ -11,8 +11,8 @@ Install Python3.10 If you're on a mac, you can use pyenv to handle multiple python versions ``` brew install pyenv -pyenv install python3.10 -pyenv global python3.10 # or don't do this if you want a different version available globally for your system +pyenv install 3.10 #Installs latest version of python 3.10 +pyenv global 3.10 # or don't do this if you want a different version available globally for your system, set locally to use python in current folder. ``` Create a virtual env @@ -27,6 +27,13 @@ which python3 # /Users//.virtualenvs/domain-cc/bin/python ``` +If python path hasn't been setup, you can put the following in your ~/.zshrc +``` +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/shims:$PATH" +if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi” #Initalize pyenv in current shell session +``` + Navigate to `src` directory, install dependencies, and run webserver ``` cd cc-app/src @@ -57,7 +64,7 @@ pytest ``` source ~/.virtualenvs/domain-cc/bin/activate pip install -r dev-requirements.txt -# MAKE SURE you are in adb-vro/domain-cc to get the right pre-commit-config.yaml installed +# MAKE SURE you are in abd-vro/domain-cc to get the right pre-commit-config.yaml installed pre-commit install ```