[Pythonmac-SIG] Examples of vendoring python 3 with py2app

Cosimo Lupo cosimo.lupo at daltonmaag.com
Tue Dec 13 11:58:32 EST 2016


Thank you all for the replies.
I've tried using py2app with a framework python 3.5.2 from Python.org and
can confirm it correctly bundles everything up in the generated app.
I somehow was under the impression that I had to do something special about
it, but it turns out it is much easier than I thought!
Thanks again :)

Cosimo

On 13 December 2016 at 16:21, Christopher Barker <pythonchb at gmail.com>
wrote:

> Have tried it? Back in the day, py2app would embed the entire python
> runtime if you ran it with a non-Apple python.
>
> I haven't tried it with py3, but it may "just work"
>
> You'll know, 'cause you will get a big bundle :-). And you can, of course
> look inside and see what's there.
>
> -CHB
>
>
> On Tue, Dec 13, 2016 at 2:28 AM Cosimo Lupo <cosimo.lupo at daltonmaag.com>
> wrote:
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Hello list,
>>
>>
>>
>>
>>
>> Apologies if this is not the right place to ask about this.
>>
>>
>>
>>
>>
>> I would like to distribute a self-contained OSX app of an application of
>> mine written in Python 3. I've used py2app in the past to ship apps written
>> in Python 2.7, that linked to the system Python framework.
>>
>>
>> Now I'm wondering if I could if and how I could "vendor" Python 3.5
>> inside my py2app-generated app.
>>
>>
>>
>>
>>
>> In the py2app docs I could not find information as to how to embed the
>> python 3.5 interpreter and stdlib alongside the generated .app bundle.
>>
>>
>>
>>
>>
>> Could anyone point me in the right direction, and/or link to existing
>> open source apps that do this?
>>
>>
>>
>>
>>
>> Thank you for your help.
>>
>>
>>
>>
>>
>> --
>>
>>
>> Cosimo Lupo
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>>
>> https://mail.python.org/mailman/listinfo/pythonmac-sig
>>
>> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20161213/97795e2d/attachment-0001.html>


More information about the Pythonmac-SIG mailing list