This is an archive of the discontinued Mercurial Phabricator instance.

pyoxidizer: add the user site to `sys.path` on macOS

Authored by mharbison72 on Sep 17 2021, 5:01 PM.



This allows 3rd party extensions that are installed with pip to be picked up,
similar to what we do on Windows. PyOxidizer has a bug that prevents this from
working without this extra help (see 95af358fcdfe), though it appears there's
another wrinkle here with sys._framework too.

I needed this to see if the problem[1] loading the keyring extension on Windows
also occurs on macOS (it doesn't).


Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.Sep 17 2021, 5:01 PM

@indygreg Could you take a look at these two changes?

pulkit accepted this revision.Oct 13 2021, 2:30 PM
This revision is now accepted and ready to land.Oct 13 2021, 2:30 PM
This revision was automatically updated to reflect the committed changes.