Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

RIP is irrelevant. Spoofing is futile. Your routes will be aggregated. -- Alex Yuriev


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

SubjectAuthor
o Re: mac app from a python script?Dan Stromberg

1
Re: mac app from a python script?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: drsalists@gmail.com (Dan Stromberg)
Newsgroups: comp.lang.python
Subject: Re: mac app from a python script?
Date: Mon, 24 Jan 2022 18:54:06 -0800
Lines: 20
Message-ID: <mailman.255.1643079261.3079.python-list@python.org>
References: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
<838B9F3E-E7C9-4AB9-80CC-700AA83A1FA5@barrys-emacs.org>
<CAGGBd_qQ+Txw7Lxq6UOmRUTWgBiRgCyS7uVcBDdffVn459M7gA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de ohyRT4KYQkthzH1oHIYO7wlJb4SIas9yLhyg1Ep6Yoig==
Return-Path: <drsalists@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=FpxdryNH;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
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;
'macos': 0.09; 'subject:script': 0.09; 'though.': 0.09; 'barry':
0.16; 'bundle': 0.16; 'cc:name:python list': 0.16;
'from:addr:drsalists': 0.16; 'from:name:dan stromberg': 0.16;
'great,': 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;
'command': 0.23; 'list,': 0.24; 'cc:2**0': 0.25; 'binary': 0.26;
'mostly': 0.28; "doesn't": 0.32; 'message-id:@mail.gmail.com':
0.32; 'but': 0.32; 'there': 0.33; 'script': 0.33; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'subject:from': 0.37; "it's": 0.37;
'received:209.85': 0.37; 'way': 0.38; 'received:209': 0.39;
'least': 0.39; 'use': 0.39; 'received:209.85.222': 0.39; 'try':
0.40; 'should': 0.40; 'gave': 0.61; 'stay': 0.61; 'everything':
0.63; 'experience': 0.64; 'skip:# 10': 0.68; 'plus': 0.73;
'normal,': 0.84; 'pyqt': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=uv8nq2xcxdrraxQtKUOhI6JHYeaxAO06AmGDfu60tYg=;
b=FpxdryNHJlRmEsDOL9SoMOAJbEpA6bFHO7Auq10kAdiCJqMoDcClUZw0mMW9S6cFnN
igJiQ7YB56DECaZDQpO3OqkJuc/2lMXT9nKqpJ/YfL63VNmZC2/A9w/SFYZP4koYnRxq
S/FgfkUEbfYRs6vmFDwwNTH0pjnzPpGP6g29jdBtNxV5F0WBIpogB2hVmsbHF4IQR5OZ
PnEDfnY1ccPRIto6pyuS/INFnHqbDDfOfDUMz38wUwWpCQOhj2dX7WuHJWTFW/Li+HD1
WC33hJb/+dzHuK9kDjRu2fUuw+LWmRKAaS56DpWBWh1tOuyvOpCXnzEubzKPJUhF0GnU
uhlA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=uv8nq2xcxdrraxQtKUOhI6JHYeaxAO06AmGDfu60tYg=;
b=1WOKf3M0U+vjWuMNJ+YpmwF9hXVVMNgRiQMjC1Lfr1PD5ezik4rJ8TdVsZf4rHZcdt
3dn38dgumyMZjn47aleCEjibb5VnY5iQe7RJnHRsTcx5X3PSv8ebsixcwjRzGnSLUnUn
JxpK1HUyRTGMtvpeYBg9YKUtuj1ZQRjzHc4zzr28Uh9G9DTCaaj/UoV0FnJQT8a77vcQ
f4Bbnizb97ru+I4Oo1bqYEgbZqiib5cqr+YJlZBK/InPzgCbkCakTJqk/8nSQ9hT8Ib2
5+VFsfzqiZ7X/9cgazlsIYxoFh1ERdGAiIKMnw8JOSt7an9VL/vL9OHMCwdICjeSc0Cw
TiJA==
X-Gm-Message-State: AOAM5320PXZ3FDUANsS+9eY3nmr9xtoPNO9YMKgcsYL/TWs7xF+n+yka
49yeR7EKZjOIlVR3LG0DXxSk4tL+hbP6G59gfBoixhqMncM=
X-Google-Smtp-Source: ABdhPJyYYJ1RZ123tK8qPwKqt3MSoJWwP/CI9btspJwq2hcmv0Y1tSh4FqpAfH/QF0WLZVdzwmAIPMUvl+Hv7M4d0gs=
X-Received: by 2002:a67:c48b:: with SMTP id d11mr3592427vsk.67.1643079257986;
Mon, 24 Jan 2022 18:54:17 -0800 (PST)
In-Reply-To: <838B9F3E-E7C9-4AB9-80CC-700AA83A1FA5@barrys-emacs.org>
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: <CAGGBd_qQ+Txw7Lxq6UOmRUTWgBiRgCyS7uVcBDdffVn459M7gA@mail.gmail.com>
X-Mailman-Original-References: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
<838B9F3E-E7C9-4AB9-80CC-700AA83A1FA5@barrys-emacs.org>
 by: Dan Stromberg - Tue, 25 Jan 2022 02:54 UTC

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.
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