From 4462e85d14fe50c650f70d071c149a8cb0015b69 Mon Sep 17 00:00:00 2001 From: James Downie Date: Thu, 5 Jun 2025 20:41:08 +1000 Subject: [PATCH] Added requirements and a README to explain how to use it. --- jdownie/README.md | 19 +++++++++++++++++++ jdownie/requirements.txt | 1 + 2 files changed, 20 insertions(+) create mode 100644 jdownie/README.md create mode 100644 jdownie/requirements.txt diff --git a/jdownie/README.md b/jdownie/README.md new file mode 100644 index 0000000..70b279c --- /dev/null +++ b/jdownie/README.md @@ -0,0 +1,19 @@ + +# Python Setup + +To get my python scripts working i need some special modules. I've found the following approach to be more reliable. + +In my `.bash_profile`, i have these two lines pretty early on... + +``` +[ -d "$HOME/.venv" ] || python3 -m venv "$HOME/.venv" +[ -f "$HOME/.venv/bin/activate" ] && . "$HOME/.venv/bin/activate" +``` + +The first line will create your `.venv` folder if it doesn't exist. That second `activate` line will override your installed `python3` and `pip3` paths. The following will install the modules that i require. + +``` +pip3 install -r requirements.txt +``` + +This should set you up to use any of my `python` based solutions. diff --git a/jdownie/requirements.txt b/jdownie/requirements.txt new file mode 100644 index 0000000..c3726e8 --- /dev/null +++ b/jdownie/requirements.txt @@ -0,0 +1 @@ +pyyaml