From bac795218d33f2be66f3a22b319736d312caedf4 Mon Sep 17 00:00:00 2001 From: Fabian Reinold <32450519+freinold@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:26:42 +0200 Subject: [PATCH 1/2] Add prisma binary_cache_dir specification to pyproject.toml --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8bac85210..1f5d17df6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,3 +98,7 @@ version_files = [ [tool.mypy] plugins = "pydantic.mypy" + +[tool.prisma] +# cache engine binaries in a directory relative to your project +binary_cache_dir = '.binaries' From 3de1743cd85cb49b195cfd977f5f6df9c4ea33a0 Mon Sep 17 00:00:00 2001 From: Fabian Reinold <32450519+freinold@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:27:01 +0200 Subject: [PATCH 2/2] Change prisma configuration to capsulate all binaries inside application directory with no connection to active user --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1f5d17df6..7ce3182fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,4 +101,6 @@ plugins = "pydantic.mypy" [tool.prisma] # cache engine binaries in a directory relative to your project -binary_cache_dir = '.binaries' +# binary_cache_dir = '.binaries' +home_dir = '.prisma' +nodeenv_cache_dir = '.nodeenv'