From 121d8497154b6b9b09f8baac48ff0e719a94299c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de>
Date: Mon, 11 Oct 2021 15:51:54 +0200
Subject: [PATCH] Quick-fix to add nest's lib64 site-packages to PYTHONPATH

---
 packages/nest/package.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/packages/nest/package.py b/packages/nest/package.py
index 24b89a63..eb23f6cb 100644
--- a/packages/nest/package.py
+++ b/packages/nest/package.py
@@ -176,3 +176,8 @@ class Nest(CMakePackage):
     @on_package_attributes(run_tests=True)
     def installcheck(self):
         make("installcheck")
+
+    # quick-fix to add lib64/python3.8/site-packages to the PYTHONPATH;
+    # this should happen automatically for packages extending Python...
+    def setup_run_environment(self, env):
+        env.prepend_path('PYTHONPATH', self.prefix.lib64.join('python3.8/site-packages'))
-- 
GitLab