Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The heart is not a logical organ. -- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4


devel / comp.lang.python / Re: mac app from a python script?

SubjectAuthor
o Re: mac app from a python script?Barry

1
Re: mac app from a python script?

<mailman.258.1643149965.3079.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21221&group=comp.lang.python#21221

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: barry@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: mac app from a python script?
Date: Tue, 25 Jan 2022 22:23:43 +0000
Lines: 34
Message-ID: <mailman.258.1643149965.3079.python-list@python.org>
References: <CAGGBd_qQ+Txw7Lxq6UOmRUTWgBiRgCyS7uVcBDdffVn459M7gA@mail.gmail.com>
<139083F1-E578-4C12-BE00-9F82020539A8@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de jqFG5TXH/4K417ztwOhafgtaHSWxeH5fULgNXXV+jhLw==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2022': 0.05; 'gui': 0.05;
'subject:python': 0.06; 'sun,': 0.07; 'cc:addr:python-list': 0.09;
'dan': 0.09; 'from:addr:barry': 0.09; 'macos': 0.09;
'received:217.70': 0.09; 'received:217.70.178': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:script': 0.09; 'though.': 0.09; '2022,': 0.16; 'barry':
0.16; 'bundle': 0.16; 'cc:name:python list': 0.16; 'from:addr
:barrys-emacs.org': 0.16; 'great,': 0.16; 'message-id:@barrys-
emacs.org': 0.16; 'python3': 0.16; 'script.': 0.16; 'subject:app':
0.16; 'wrote:': 0.16; 'python': 0.16; 'applications': 0.17;
'installing': 0.19; 'cc:addr:python.org': 0.20; 'mac': 0.22;
'install': 0.23; 'command': 0.23; 'list,': 0.24; 'cc:2**0': 0.25;
'binary': 0.26; 'mostly': 0.28; "doesn't": 0.32; 'but': 0.32;
'there': 0.33; 'script': 0.33; 'mean': 0.34; 'header:In-Reply-
To:1': 0.34; 'subject:from': 0.37; "it's": 0.37; 'way': 0.38;
'least': 0.39; 'use': 0.39; 'try': 0.40; 'should': 0.40; 'gave':
0.61; 'stay': 0.61; 'apps': 0.62; 'everything': 0.63;
'experience': 0.64; 'received:217': 0.67; 'skip:# 10': 0.68;
'drop': 0.69; 'skip:/ 10': 0.69; 'plus': 0.73; 'normal,': 0.84;
'pyqt': 0.84
In-Reply-To: <CAGGBd_qQ+Txw7Lxq6UOmRUTWgBiRgCyS7uVcBDdffVn459M7gA@mail.gmail.com>
X-Mailer: iPad Mail (19C63)
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <139083F1-E578-4C12-BE00-9F82020539A8@barrys-emacs.org>
X-Mailman-Original-References: <CAGGBd_qQ+Txw7Lxq6UOmRUTWgBiRgCyS7uVcBDdffVn459M7gA@mail.gmail.com>
 by: Barry - Tue, 25 Jan 2022 22:23 UTC

> On 25 Jan 2022, at 02:56, Dan Stromberg <drsalists@gmail.com> wrote:
>
> 
>
>> On Sun, Jan 23, 2022 at 1:37 PM Barry <barry@barrys-emacs.org> wrote:
>>
>> I do not have experience with great, but you might try pyinstaller.
>> I use it to make a PyQt Mac app successfully.
>>
>> It’s command line plus setup script.
>
> I wound up doing:
> 1) pyinstaller, as normal, but this created a broken all-encompassing binary of my script. At least it gave me the metadata I needed though.

You mean it created a .app bundle?

That is the way that macOS makes it trivia to install apps
Just by drag and drop in /Applications.

Barry

> 2) overwriting /Applications/hcm.app/Contents/MacOS/hcm with a proper #!/usr/bin/env python3 script

>
> This mostly works. It's a kinda ugly hack, and it doesn't stay in the dock after starting it.
>
> There should be a way of installing a python GUI in the macOS Applications list, without having to bundle everything up into a big binary.


devel / comp.lang.python / Re: mac app from a python script?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor