Skip to content

Commit

Permalink
Add site.ENABLE_USER_SITE for app bundles
Browse files Browse the repository at this point in the history
This fixes #387
  • Loading branch information
ronaldoussoren committed Feb 6, 2022
1 parent e776fed commit 5150910
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/changelog.rst
Expand Up @@ -11,6 +11,10 @@ py2app 0.27

* #391: Drop usage of tempfile.mktemp

* #387: Add ``site.ENABLE_USER_SITE`` in the site.py file
for applications (value is always ``False``).


py2app 0.26.1
-------------

Expand Down
2 changes: 2 additions & 0 deletions py2app/apptemplate/lib/site.py
Expand Up @@ -18,6 +18,8 @@
# add the uncompressed site-packages to the path to compensate for that.
sys.path.append(_parent + "/site-packages")

ENABLE_USER_SITE = False

USER_SITE = None
USER_BASE = None

Expand Down
2 changes: 2 additions & 0 deletions py2app/bundletemplate/lib/site.py
Expand Up @@ -18,6 +18,8 @@
# add the uncompressed site-packages to the path to compensate for that.
sys.path.append(_parent + "/site-packages")

ENABLE_USER_SITE = False

USER_SITE = None
USER_BASE = None

Expand Down

0 comments on commit 5150910

Please sign in to comment.