From a0d739f8e0af1011ceea6b75949fbf5559e6c5b2 Mon Sep 17 00:00:00 2001 From: Jarrett Johnson Date: Wed, 7 Aug 2024 22:31:51 -0400 Subject: [PATCH] use site_packages_dir as base for script installation --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c88b725f9..507dd32d0 100644 --- a/setup.py +++ b/setup.py @@ -487,8 +487,9 @@ def make_launch_script(self): launch_script = os.path.join(self.install_scripts, launch_script) python_exe = os.path.abspath(sys.executable) + site_packages_dir = sysconfig.get_path('purelib') pymol_file = self.unchroot( - os.path.join(self.install_libbase, "pymol", "__init__.py") + os.path.join(site_packages_dir, "pymol", "__init__.py") ) pymol_path = self.unchroot(self.pymol_path)