From 5477419a2346857645f5d8683619186ab5355de5 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Sun, 3 Apr 2022 11:57:05 +0200 Subject: [PATCH] Add definition of ``site.PREFIXES`` Fixes #408 --- doc/changelog.rst | 2 ++ py2app/apptemplate/lib/site.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/doc/changelog.rst b/doc/changelog.rst index 01ca9a9..23a48c7 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -7,6 +7,8 @@ py2app 0.28 * Fix hard crash in "rtree" recipe when the package contents doesn't match the recipe expectations. +* #408: Add definition of ``site.PREFIXES`` + * #412: Fix incompatibility with setuptools 60.8.1 The setuptools recipe did not recoginize all vendored dependencies diff --git a/py2app/apptemplate/lib/site.py b/py2app/apptemplate/lib/site.py index d867838..7999a25 100644 --- a/py2app/apptemplate/lib/site.py +++ b/py2app/apptemplate/lib/site.py @@ -203,3 +203,6 @@ def getusersitepackages(): builtins.help = _sitebuiltins._Helper() builtins.quit = _sitebuiltins.Quitter('quit', 'Ctrl-D (i.e. EOF)') builtins.exit = _sitebuiltins.Quitter('exit', 'Ctrl-D (i.e. EOF)') + +# Prefixes for site-packages; add additional prefixes like /usr/local here +PREFIXES = [sys.prefix, sys.exec_prefix]