Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Ronald Oussoren via Pythonmac-SIG
> On 28 Sep 2018, at 10:34, Just van Rossum wrote: > > Following up to this: it seems line 1832 in py2app/build_app.py isn’t correct > anymore, with Python 3 venv behavior: > >if os.path.exists(os.path.join(sys.prefix, ".Python")): > > Not sure how to fix it. If I force this code pat

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Joni Orponen
On Fri, Sep 28, 2018 at 10:36 AM Just van Rossum wrote: > Following up to this: it seems line 1832 in py2app/build_app.py isn’t > correct anymore, with Python 3 venv behavior: > > if os.path.exists(os.path.join(sys.prefix, ".Python")): > > Not sure how to fix it. If I force this code path

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Just van Rossum
Following up to this: it seems line 1832 in py2app/build_app.py isn’t correct anymore, with Python 3 venv behavior: if os.path.exists(os.path.join(sys.prefix, ".Python")): Not sure how to fix it. If I force this code path to be taken, I get an AttributeError on sys.real_prefix, so I gue

[Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Just van Rossum
Hi all, py2app seems to do the right thing from an activated virtual env when building a full app. However, for speedy development I use the py2app -A option a lot, and when running such an alias bundle it appears to use the global Python install instead of the virtual env. Is there a way aroun