From c1597cc1f99e60921cb691d453e8e81c85061cc8 Mon Sep 17 00:00:00 2001 From: ruaridhg Date: Tue, 28 May 2024 17:04:46 +0100 Subject: [PATCH] Changed macos pytest docs --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 07dc7a4..d2f3e7f 100644 --- a/README.md +++ b/README.md @@ -79,9 +79,12 @@ Alternatively, install [manually](/docs/Install_addon_manually.md) via Blender s > **MacOS** > The following steps were needed to install these dependencies correctly on MacOS: -> - `get-pip.py` downloaded (this step may not be needed since newer versions of Blender have pip installed already in the Blender python) -> - Changing Mac permissions to grant full disk access from where you're running pytest i.e. VS code or terminal -> - `/Applications/Blender.app/Contents/Resources/3.4/python/bin/python3.10 -m pip install pytest -t "/Applications/Blender.app/Contents/Resources/3.4/python/lib/python3.10/site-packages"` the target flag -t makes sure that the installation ends up in the correct place +pip install pytest-blender +pip install pytest +blender_python="$(pytest-blender)" +$blender_python -m ensurepip +$blender_python -m pip install . pytest +pytest --blender-executable /Applications/Blender.app/Contents/MacOS/Blender ## Contributions